Versions in this module Expand all Collapse all v1 v1.0.0 Oct 30, 2024 Changes in this version + var PrivateKey = []byte(...) + var PublicKey = []byte(...) + func Base64Decode(encoded string) ([]byte, error) + func CheckPwd(password, hash string) bool + func CheckPwdHash(_pwd, _hash_pwd string) bool + func CreatePwdHash(_pwd string) (string, error) + func GetAesDe(ciphertext, _key string) (plaintext []byte, err error) + func GetDeRsa(base64Text string) (decryptedMessage string, err error) + func GetUserToken(_token string) (_token_map g.Map) + func HashPwd(password string) (string, error) + func ParsePrivateKey(pemKey []byte) (*rsa.PrivateKey, error) + func RSADecrypt(base64Text string, privateKey *rsa.PrivateKey) (string, error) + func SetUserToken(_data g.Map) (_token string) + type JWToken struct + SignString string + func NewJWToken(signString string) *JWToken + func (t *JWToken) GenJWToken(rawContent g.Map) (string, error) + func (t *JWToken) ParseJWToken(tokenString string) (g.Map, error)