Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
func AESCBCEncrypt ¶
AES + CBC(Cipher Block Chaining) + PKCS7Padding echo -n 'plainText' | openssl aes-128-cbc -e -K 'hex(key)' -iv 'hex(iv)' -nosalt | hexdump -e '16/1 "%02x"'
func PKCS7Padding ¶
https://datatracker.ietf.org/doc/html/rfc2315#section-10.3 pad the data at the trailing end with blockSize - (len(data) mod blockSize) octets all having value blockSize - (len(data) mod blockSize). 1 < blockSize < 256
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.