Documentation ¶
Overview ¶
aesutil provides AES crypto utilities including writing and reading AES encrypted files
Index ¶
- func DecryptAES(text []byte, key []byte) ([]byte, error)
- func DecryptAESBase58(ciphertext []byte, key []byte, encoding *base58.Encoding) ([]byte, error)
- func DecryptAESBase58JSON(ciphertext []byte, key []byte, encoding *base58.Encoding, item any) error
- func DecryptAESBase64String(ciphertextBase64 string, key []byte) ([]byte, error)
- func EncryptAES(plaintext []byte, key []byte) ([]byte, error)
- func EncryptAESBase58(plaintext []byte, key []byte, encoding *base58.Encoding) ([]byte, error)
- func EncryptAESBase58JSON(plainitem any, key []byte, encoding *base58.Encoding) ([]byte, error)
- func EncryptDirectoryFilesAES(dirUnc string, dirEnc string, perm os.FileMode, key []byte) error
- func EncryptFileAES(filenameUnc string, filenameEnc string, perm os.FileMode, key []byte) error
- func ReadFileAES(filename string, key []byte) ([]byte, error)
- func WriteFileAES(filename string, baFileUnc []byte, perm os.FileMode, key []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAESBase58 ¶ added in v0.47.0
func DecryptAESBase58JSON ¶ added in v0.47.0
func DecryptAESBase64String ¶ added in v0.47.0
func EncryptAES ¶ added in v0.47.0
EncryptAes provides a ciphertext byte array given a plaintext bytearray and key.
func EncryptAESBase58 ¶ added in v0.47.0
func EncryptAESBase58JSON ¶ added in v0.47.0
func EncryptDirectoryFilesAES ¶ added in v0.47.0
func EncryptFileAES ¶ added in v0.47.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.