https://github.com/chelnak/pkcs7padding
A package that implements PKCS#7 padding in V.
https://github.com/chelnak/pkcs7padding
vlang vlang-module
Last synced: 5 months ago
JSON representation
A package that implements PKCS#7 padding in V.
- Host: GitHub
- URL: https://github.com/chelnak/pkcs7padding
- Owner: chelnak
- License: mit
- Created: 2022-02-04T22:11:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-05T21:32:37.000Z (over 4 years ago)
- Last Synced: 2025-05-26T00:11:32.884Z (about 1 year ago)
- Topics: vlang, vlang-module
- Language: V
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkcs7padding
[](https://github.com/chelnak/pkcs7padding/actions/workflows/ci.yml)
This is an experimental package written in [vlang](https://vlang.io/) that implements pkcs#7 padding based on the information in [this Wikipedia article](https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS#5_and_PKCS#7).
It's primary use is to privide padding support when using the vlib crypto package.
To see some basic examples of how you could use this package, please see the [tests](padding_test.v). Alternatively, for a more comprehensive example that uses AES with [CBC](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher_block_chaining_(CBC)), take a look at this [example](example/cipher_test.v).