crypt

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewAES

func NewAES(key string) *AES

NewAES returns a new AES hasher.

func (*AES) DecryptString

func (a *AES) DecryptString(payload string) (string, error)

DecryptString decrypts the given iv and ciphertext, and returns the plaintext.

func (*AES) EncryptString

func (a *AES) EncryptString(value string) (string, error)

Jump to

Keyboard shortcuts

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