Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
AesDecrypt AesDecrypt
func AesDecryptPkcs5 ¶
AesDecryptPkcs5 解密
func AesDecryptPkcs7 ¶
AesDecryptPkcs7 解密
func AesDecryptPkcs7Base64 ¶
AesDecryptPkcs7Base64 解密
func AesDecryptSimple ¶
AesDecryptSimple 解密
func AesEncrypt ¶
func AesEncrypt(origData []byte, key []byte, iv []byte, paddingFunc func([]byte, int) []byte) ([]byte, error)
AesEncrypt AesEncrypt
func AesEncryptPkcs5 ¶
AesEncryptPkcs5 加密
func AesEncryptPkcs7 ¶
AesEncryptPkcs7 加密
func AesEncryptPkcs7Base64 ¶
AesEncryptPkcs7Base64
func AesEncryptSimple ¶
AesEncryptSimple 加密
func GetCurve25519Key ¶
GetCurve25519Key GetCurve25519Key
func GetCurve25519KeypPair ¶
func GetCurve25519KeypPair() (Aprivate, Apublic [32]byte)
GetCurve25519KeypPair GetCurve25519KeypPair
func PKCS5Padding ¶
PKCS5Padding PKCS5Padding
func PKCS7Padding ¶
PKCS7Padding PKCS7Padding
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.