ernestAes

package
v0.0.0-...-176d762 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: MPL-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct {
}

Crypto : ...

func New

func New() Crypto

New : Constructor for aes.Crypto

func (Crypto) Decrypt

func (aesCrypto Crypto) Decrypt(encrypted, password string) (string, error)

Decrypt : Decripts a cipher text based on a key

func (Crypto) Encrypt

func (aesCrypto Crypto) Encrypt(plaintext, password string) (string, error)

Encrypt : Encrypt a string based on a key

func (Crypto) KeyValidation

func (aesCrypto Crypto) KeyValidation(key []byte) bool

KeyValidation : Checks if a key is valid or not

Jump to

Keyboard shortcuts

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