encrypt

package
v0.0.0-...-4972dd0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ENC_IV_SIZE = 8

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

type Encryptor struct {
	IV     []byte
	Key    []byte
	Mode   string
	Cipher string
}

func (*Encryptor) Decrypt

func (c *Encryptor) Decrypt(encryptedText []byte) ([]byte, error)

func (*Encryptor) Encrypt

func (c *Encryptor) Encrypt(plainText []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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