crypto

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher interface {
	Encrypt(value []byte) []byte
	Decrypt(value []byte) []byte
}

Cipher defines an object responsible to cipher and deciphers values by a key

func NewCipher

func NewCipher(key []byte, logger logs.ErrorLogger, thrower errors.ErrorThrower) Cipher

NewCipher returns a Cipher object

type CipherError added in v1.0.12

type CipherError interface {
	errors.CustomError
}

CipherError is the definition of errors that can occur using a Cipher object

Jump to

Keyboard shortcuts

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