crypto

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: Apache-2.0 Imports: 4 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, errorCatcher errors.ErrorCatcher, errorDefer errors.ErrorDefer) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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