Documentation ¶
Index ¶
- Constants
- func AESCBCDecrypted(ciphertext, key string) (string, error)
- func AESCBCEncrypt(plaintext, key string) (string, error)
- func AESGCMDecrypted(ciphertext, key, nonceText string) (string, error)
- func AESGCMEncrypt(plaintext, key string) (string, string, error)
- func AesDecrypt(data []byte, key []byte) ([]byte, error)
- func AesEncrypt(data []byte, key []byte) ([]byte, error)
- func DecryptByAes(data string) ([]byte, error)
- func EncryptByAes(text string) (string, error)
Constants ¶
View Source
const JWT_SECRETE = "p2F*J7D!A%s68^wS"
Variables ¶
This section is empty.
Functions ¶
func AESCBCEncrypt ¶
AESCBCEncrypt
AES CBC 加密 key:加密key plaintext:加密明文 ciphertext:解密返回字节字符串[ 整型以十六进制方式显示]
func AESGCMEncrypt ¶
AESGCMEncrypt
AES GCM 加密 key:加密key plaintext:加密明文 ciphertext:解密返回字节字符串[ 整型以十六进制方式显示]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.