aes256

package
v0.0.0-...-6156683 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionStore

type EncryptionStore struct {
	IV         []byte `json:"iv"`
	CipherText []byte `json:"cipher_text"`
}

func (*EncryptionStore) Decrypt

func (e *EncryptionStore) Decrypt() (decryptedContent []byte, err error)

Decrypt uses an encryption key from the callers environment alongside previously stored initialization vector and encrypted cipher text to decrypt content

func (*EncryptionStore) Encrypt

func (e *EncryptionStore) Encrypt(content []byte) (err error)

Encrypt uses an encryption key from the callers environment to encrypt content

Jump to

Keyboard shortcuts

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