aesutil

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

aesutil provides AES crypto utilities including writing and reading AES encrypted files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES added in v0.47.0

func DecryptAES(text []byte, key []byte) ([]byte, error)

func DecryptAESBase58 added in v0.47.0

func DecryptAESBase58(ciphertext []byte, key []byte, encoding *base58.Encoding) ([]byte, error)

func DecryptAESBase58JSON added in v0.47.0

func DecryptAESBase58JSON(ciphertext []byte, key []byte, encoding *base58.Encoding, item any) error

func DecryptAESBase64String added in v0.47.0

func DecryptAESBase64String(ciphertextBase64 string, key []byte) ([]byte, error)

func EncryptAES added in v0.47.0

func EncryptAES(plaintext []byte, key []byte) ([]byte, error)

EncryptAes provides a ciphertext byte array given a plaintext bytearray and key.

func EncryptAESBase58 added in v0.47.0

func EncryptAESBase58(plaintext []byte, key []byte, encoding *base58.Encoding) ([]byte, error)

func EncryptAESBase58JSON added in v0.47.0

func EncryptAESBase58JSON(plainitem any, key []byte, encoding *base58.Encoding) ([]byte, error)

func EncryptDirectoryFilesAES added in v0.47.0

func EncryptDirectoryFilesAES(dirUnc string, dirEnc string, perm os.FileMode, key []byte) error

func EncryptFileAES added in v0.47.0

func EncryptFileAES(filenameUnc string, filenameEnc string, perm os.FileMode, key []byte) error

func ReadFileAES added in v0.47.0

func ReadFileAES(filename string, key []byte) ([]byte, error)

func WriteFileAES added in v0.47.0

func WriteFileAES(filename string, baFileUnc []byte, perm os.FileMode, key []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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