Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func BASE64StdDecode(src string) ([]byte, error)
- func BASE64StdEncode(src []byte) string
- func DealWithDecrypt(src string, key string) (string, error)
- func DealWithEncrypt(src string, key string) (string, error)
- func Decrypt(cipherText string, privateKeyByte []byte, password string) (decrypted string, err error)
- func EncryptValue(value string, publicKeyData []byte) (string, error)
- func GenerateRsaKeyPair(password string) (privateByte, publicByte []byte, err error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(originData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptValue ¶ added in v6.3.0
func GenerateRsaKeyPair ¶ added in v6.4.0
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.