cryptographer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 8 Imported by: 0

README

cryptographer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct {
	// contains filtered or unexported fields
}

func (*Crypto) Decrypt

func (c *Crypto) Decrypt(cipherText string) (string, error)

func (*Crypto) Encrypt

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

type Cryptographer

type Cryptographer interface {
	Encrypt(plaintext []byte) (string, error)
	Decrypt(cipherText string) (string, error)
}

func NewCryptographer

func NewCryptographer(key string) (Cryptographer, error)

Jump to

Keyboard shortcuts

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