Documentation
¶
Index ¶
- Variables
- func AutoClearCache(d time.Duration)
- func ClearCache()
- func Decrypt(cipherData []byte, key string) ([]byte, error)
- func DecryptFromFile(decryptFilePath string, key string) (data []byte, err error)
- func DecryptWithCache(cipherText []byte, key string, psdKey string) (string, error)
- func EncriptWithCache(plainText string, key string, psdKey string) ([]byte, error)
- func Encrypt(data []byte, key string) ([]byte, error)
- func EncryptToFile(buf []byte, encryptedFilePath string, key string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DecryptCache sync.Map
Functions ¶
func DecryptFromFile ¶
加密的文件, 加密密钥
func DecryptWithCache ¶
解密并写入缓存
func EncriptWithCache ¶
加密并写入缓存
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.