rencryption

package module
v0.0.0-...-74b4d02 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decryptor

type Decryptor interface {
	Decrypt(ciphertext []byte) (plainByte []byte, err error)
	DecryptString(ciphertext []byte) (res string)
}

type Encryption

type Encryption interface {
	Encryptor
	Decryptor
}

func NewAESEncryption

func NewAESEncryption(key string) Encryption

func NewBase32Encryption

func NewBase32Encryption(key string) Encryption

func NewBase64Encryption

func NewBase64Encryption(key string) Encryption

type Encryptor

type Encryptor interface {
	Encrypt(plain []byte) (ciphertext []byte, err error)
	EncryptString(ciphertext []byte) (res string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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