crypto

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decrypter

type Decrypter interface {
	Decrypt(encryptedText string) (string, error)
}

Decrypter is a interface to decrypt data.

func NewDecrypter

func NewDecrypter(keyFile string) (Decrypter, error)

NewDecrypter returns a new decrypter.

type Encrypter

type Encrypter interface {
	Encrypt(text string) (string, error)
}

Encrypter is a interface to encrypt data.

func NewEncrypter

func NewEncrypter(keyFile string) (Encrypter, error)

NewEncrypter returns a new encrypter.

Jump to

Keyboard shortcuts

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