aesvault

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PBKDF2KeySHA256

func PBKDF2KeySHA256(password *string, salt []byte, a *AES) *h_mac.Key

Types

type AES

type AES struct {
	AESKeyLength   int
	SaltLength     int
	IVLength       int
	IterationCount int
	Plaintext      string
	CipherText     string
	CipherKey      []byte
	HMACKey        []byte
	IV             []byte
}

AES store variables for encryption

func (*AES) Decrypt

func (a *AES) Decrypt() (string, error)

Decrypt interface method for decryption

func (*AES) Encrypt

func (a *AES) Encrypt() ([]byte, error)

Encrypt interface method for encryption

func (*AES) Validate

func (a *AES) Validate() bool

Jump to

Keyboard shortcuts

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