encryption

package
v0.0.0-...-378dc36 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorsEncryption       = errorx.NewNamespace("IEncryption")
	ErrorEncryptionEncrypt = errorx.NewType(ErrorsEncryption, "Encrypt")
	ErrorEncryptionDecrypt = errorx.NewType(ErrorsEncryption, "Decrypt")
)

Functions

This section is empty.

Types

type AES

type AES struct {
}

func (*AES) Decrypt

func (A *AES) Decrypt(data string, key string) (string, error)

func (*AES) Encrypt

func (A *AES) Encrypt(data string, key string) (string, error)

func (*AES) String

func (A *AES) String() string

type IEncryption

type IEncryption interface {
	String() string
	Encrypt(data string, key string) (string, error)
	Decrypt(data string, key string) (string, error)
}

Jump to

Keyboard shortcuts

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