crypto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT 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 added in v0.0.3

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

AES is the instance that allow read encrypted AES message

func (*AES) Decrypt added in v0.0.3

func (a *AES) Decrypt(ciphertext string) ([]byte, error)

Decrypt with AES key

func (*AES) Encrypt added in v0.0.3

func (a *AES) Encrypt(data []byte) (string, error)

Encrypt with AES key

type Reader added in v0.0.3

type Reader interface {
	Encrypt(data []byte) (string, error)
	Decrypt(ciphertext string) ([]byte, error)
}

func NewAES added in v0.0.3

func NewAES(key string) (Reader, error)

Jump to

Keyboard shortcuts

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