Documentation ¶
Index ¶
- Variables
- func AesDeCrypt(cypted []byte, key []byte) ([]byte, error)
- func AesEcrypt(origData []byte, key []byte) ([]byte, error)
- func DePwdCode(pwd string) ([]byte, error)
- func EnPwdCode(pwd []byte) (string, error)
- func GlobalCookie(ctx iris.Context, name string, value string)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PwdKey = []byte("DIS**#KKKDJJSKDI")
16,24,32位字符串的话,分别对应AES-128,AES-192,AES-256 加密方法 key不能泄露
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.