Documentation ¶
Index ¶
- Variables
- func AesDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AesEncrypt(plainText, key []byte, iv []byte) ([]byte, error)
- func GenKey(length int) (string, error)
- func GenKeyByte(length int) ([]byte, error)
- func GenerateRSAKey(bits int)
- func RSADecrypt(cipherText []byte, key []byte) []byte
- func RSAEncrypt(plainText []byte, key []byte) []byte
- func ReadRSAKey(path string) []byte
- func SetRsaKey()
Constants ¶
This section is empty.
Variables ¶
View Source
var RSAKey struct { Public []byte Private []byte }
Functions ¶
func AesEncrypt ¶
AesEncrypt AES加密CRT
func GenKeyByte ¶
func RSADecrypt ¶
RSADecrypt RSA解密 cipherText 需要解密的byte数据
func RSAEncrypt ¶
RSAEncrypt RSA加密 plainText 要加密的数据
func ReadRSAKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.