cryptography

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 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 AES

type AES struct{}

func NewAES

func NewAES() *AES

func (*AES) Decrypter

func (*AES) Decrypter(code string, key []byte) (string, error)

func (*AES) Encrypter

func (*AES) Encrypter(password string, key []byte) (string, error)

type SymmetricKeyEncrypter

type SymmetricKeyEncrypter interface {
	Encrypter(plainText string, key []byte) (string, error)
	Decrypter(cipherText string, key []byte) (string, error)
}

func NewSymmetricKeyEncrypter

func NewSymmetricKeyEncrypter(algo string) SymmetricKeyEncrypter

Jump to

Keyboard shortcuts

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