Documentation
¶
Index ¶
- func Base64Decode(data string) []byte
- func Base64Encode(data []byte) string
- func BcryptCompare(hashedPassword, password string) error
- func BcryptHash(password string) (string, error)
- func BcryptHashMust(password string) string
- func DecryptAES(aesKey, cipherText []byte) ([]byte, error)
- func DecryptAESMust(aesKey, cipherText []byte) []byte
- func DecryptEntField() ent.Interceptor
- func EncryptAES(aesKey, plainText []byte) ([]byte, error)
- func EncryptAESMust(aesKey, plainText []byte) []byte
- func EncryptedMixin() ent.Hook
- func SHA256(data []byte) string
- func Username2UserID(username string) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func BcryptCompare ¶
func BcryptHash ¶
func BcryptHashMust ¶
func DecryptAES ¶
DecryptAES 对 AES 加密字符串解密
func DecryptAESMust ¶
func EncryptAES ¶
EncryptAES 对字符串进行 AES 加密
func EncryptAESMust ¶
func Username2UserID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.