aesop

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: MIT Imports: 8 Imported by: 0

README

aesop

Encrypts and decrypts data using 256-bit AES-GCM

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte, key *[32]byte) ([]byte, error)

Decrypt decrypts data using 256-bit AES-GCM

func DecryptFile

func DecryptFile(encFile, decrFile string, key *[32]byte) error

func Encrypt

func Encrypt(text []byte, key *[32]byte) ([]byte, error)

Encrypt encrypts data using AES-GCM 256-bit.

func EncryptFile

func EncryptFile(filename, destfile string, key *[32]byte) error

func NewEncryptionKey

func NewEncryptionKey(password, salt []byte) (*[32]byte, error)

func NewRandomEncryptionKey

func NewRandomEncryptionKey() *[32]byte

NewRandomEncryptionKey generates a random 256-bit key for Encrypt() and Decrypt() functions

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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