Versions in this module Expand all Collapse all v1 v1.0.0 Jul 29, 2023 Changes in this version + func AesDecrypt(crypted, key []byte, iv []byte, unPaddingFunc func([]byte) []byte) ([]byte, error) + func AesDecryptPkcs5(crypted []byte, key []byte, iv []byte) ([]byte, error) + func AesDecryptPkcs7(crypted []byte, key []byte, iv []byte) ([]byte, error) + func AesDecryptPkcs7Base64(crypted []byte, key []byte, iv []byte) ([]byte, error) + func AesDecryptSimple(crypted []byte, key string, iv string) ([]byte, error) + func AesEncrypt(origData []byte, key []byte, iv []byte, paddingFunc func([]byte, int) []byte) ([]byte, error) + func AesEncryptPkcs5(origData []byte, key []byte, iv []byte) ([]byte, error) + func AesEncryptPkcs7(origData []byte, key []byte, iv []byte) ([]byte, error) + func AesEncryptPkcs7Base64(origData []byte, key []byte, iv []byte) ([]byte, error) + func AesEncryptSimple(origData []byte, key string, iv string) ([]byte, error) + func GenUUID() string + func GetCurve25519Key(private, public [32]byte) (Key [32]byte) + func GetCurve25519KeypPair() (Aprivate, Apublic [32]byte) + func GetRandomString(num int) string + func MD5(str string) string + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte