aesutil

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 11 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

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

func DecryptAesBase58

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

func DecryptAesBase58Json

func DecryptAesBase58Json(ciphertext []byte, key []byte, encoding *base58.Encoding, item interface{}) error

func DecryptAesBase64String

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

func EncryptAes

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

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

func EncryptAesBase58

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

func EncryptAesBase58Json

func EncryptAesBase58Json(plainitem interface{}, key []byte, encoding *base58.Encoding) ([]byte, error)

func EncryptDirectoryFilesAes

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

func EncryptFileAes

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

func ReadFileAes

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

func WriteFileAes

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