Versions in this module Expand all Collapse all v0 v0.0.1 Feb 23, 2020 Changes in this version + const PKCS5_PADDING + const PKCS7_PADDING + const ZEROS_PADDING + func AesCBCDecrypt(src, key, iv []byte, padding string) ([]byte, error) + func AesCBCEncrypt(src, key, iv []byte, padding string) ([]byte, error) + func AesECBDecrypt(src, key []byte, padding string) ([]byte, error) + func AesECBEncrypt(src, key []byte, padding string) ([]byte, error) + func Base64Encode() + func CBCDecrypt(block cipher.Block, src, iv []byte, padding string) ([]byte, error) + func CBCEncrypt(block cipher.Block, src, iv []byte, padding string) ([]byte, error) + func Des3CBCDecrypt(src, key, iv []byte, padding string) ([]byte, error) + func Des3CBCEncrypt(src, key, iv []byte, padding string) ([]byte, error) + func Des3ECBDecrypt(src, key []byte, padding string) ([]byte, error) + func Des3ECBEncrypt(src, key []byte, padding string) ([]byte, error) + func DesCBCDecrypt(src, key, iv []byte, padding string) ([]byte, error) + func DesCBCEncrypt(src, key, iv []byte, padding string) ([]byte, error) + func DesECBDecrypt(src, key []byte, padding string) ([]byte, error) + func DesECBEncrypt(src, key []byte, padding string) ([]byte, error) + func DesMd5Decode(src, key string) (string, error) + func DesMd5Encode(src, key string) (string, error) + func ECBDecrypt(block cipher.Block, src []byte, padding string) ([]byte, error) + func ECBEncrypt(block cipher.Block, src []byte, padding string) ([]byte, error) + func KeyGenerator(src []byte, blockSize int) []byte + func KeySha1(data []byte) []byte + func Md5(str string) string + func Md5Raw16(v string) string + func NewECBDecrypter(b cipher.Block) cipher.BlockMode + func NewECBEncrypter(b cipher.Block) cipher.BlockMode + func PKCS5Padding(src []byte, blockSize int) []byte + func PKCS5Unpadding(src []byte) []byte + func PKCS7Padding(src []byte, blockSize int) []byte + func PKCS7UnPadding(src []byte) []byte + func Padding(padding string, src []byte, blockSize int) []byte + func Sha1(str string) string + func UnPadding(padding string, src []byte) []byte + func ZerosPadding(src []byte, blockSize int) []byte + func ZerosUnPadding(src []byte) []byte