Documentation ¶
Index ¶
- Constants
- func AesDecrypt(data []byte, key []byte) ([]byte, error)
- func AesEncrypt(data []byte, key []byte) ([]byte, error)
- func CheckPwdCacheExist(pwdCachePath string, addr string) bool
- func DecryptByAes(data string, pwdKey []byte) ([]byte, error)
- func EncryptByAes(data []byte, PwdKey []byte) (string, error)
- func EncryptByAesAndWriteToFile(pwdCachePath string, addr string, pwd string, key string) (string, error)
- func GetPwdByReadCache(pwdCachePath string, addr string, key string) (string, error)
Constants ¶
View Source
const DefaultCacheDirPath = "./.cache"
Variables ¶
This section is empty.
Functions ¶
func CheckPwdCacheExist ¶
func DecryptByAes ¶
DecryptByAes Aes 解密
func EncryptByAes ¶
EncryptByAes Aes加密 后 base64 再加
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.