aes

package
v1.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCacheDirPath = "./.cache"

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(data []byte, key []byte) ([]byte, error)

AesDecrypt 解密

func AesEncrypt

func AesEncrypt(data []byte, key []byte) ([]byte, error)

AesEncrypt 加密

func CheckPwdCacheExist

func CheckPwdCacheExist(pwdCachePath string, addr string) bool

func DecryptByAes

func DecryptByAes(data string, pwdKey []byte) ([]byte, error)

DecryptByAes Aes 解密

func EncryptByAes

func EncryptByAes(data []byte, PwdKey []byte) (string, error)

EncryptByAes Aes加密 后 base64 再加

func EncryptByAesAndWriteToFile

func EncryptByAesAndWriteToFile(pwdCachePath string, addr string, pwd string, key string) (string, error)

func GetPwdByReadCache

func GetPwdByReadCache(pwdCachePath string, addr string, key string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL