Documentation ¶
Index ¶
- func AESGCMDecrypt(cipherText, key []byte) ([]byte, error)
- func AESGCMDecryptData(cipherText, key string) (string, error)
- func AESGCMEncrypt(plainText, key []byte) ([]byte, error)
- func AESGCMEncryptData(plainText, key string) (string, error)
- func EmojiAESDecrypt(text string, options EmojiAESOptions) (string, error)
- func EmojiAESEncrypt(text string, options EmojiAESOptions) (string, error)
- func HashPassword(password string) (string, error)
- func VerifyPassword(password, encodedHash string) (match bool, err error)
- type EmojiAESOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESGCMDecrypt ¶
AESGCMDecrypt 使用 AES-GCM 算法对密文进行解密
func AESGCMDecryptData ¶
AESGCMDecryptData 使用 AES-GCM 算法对密文进行解密 传入 cipherText base64 string and key base64 string
func AESGCMEncrypt ¶
AESGCMEncrypt 使用 AES-GCM 算法对明文进行加密
func AESGCMEncryptData ¶
AESGCMEncryptData 使用 AES-GCM 算法对明文进行加密 传入 plainText string and key base64 string
func EmojiAESDecrypt ¶
func EmojiAESDecrypt(text string, options EmojiAESOptions) (string, error)
EmojiAESDecrypt Decryption Function This function decrypts AES-encrypted text encoded with emojis using the provided key.
func EmojiAESEncrypt ¶
func EmojiAESEncrypt(text string, options EmojiAESOptions) (string, error)
EmojiAESEncrypt Emoji AES CBC TODO:
func HashPassword ¶
HashPassword 使用 Argon2id 对密码进行 hash
func VerifyPassword ¶
VerifyPassword 验证密码的 hash 值
Types ¶
type EmojiAESOptions ¶
Click to show internal directories.
Click to hide internal directories.