encryption

package
v0.0.0-...-5a14304 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 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 Builder

type Builder interface {
	Create() Builder
	WithPassword(password []byte) Builder
	Now() (Encryption, error)
}

Builder represents the builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Encryption

type Encryption interface {
	Encrypt(message []byte) (string, error)
	Decrypt(encryptedText string) ([]byte, error)
}

Encryption represents an encryption

func NewEncryption

func NewEncryption(pass string) Encryption

NewEncryption creates a new encryption instance

Jump to

Keyboard shortcuts

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