aes

package
v0.0.0-...-9665562 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 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 CryptAES

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

func New

func New(secretKey string) *CryptAES

func (*CryptAES) Decrypt

func (c *CryptAES) Decrypt(cipherText string) (string, error)

func (*CryptAES) Encrypt

func (c *CryptAES) Encrypt(plainText string) (string, error)

func (*CryptAES) GetSecret

func (c *CryptAES) GetSecret() string

func (*CryptAES) SetSecret

func (c *CryptAES) SetSecret(secret string) *CryptAES

type Either

type Either int
const (
	Either16 Either = 16
	Either24 Either = 24
	Either32 Either = 32
)

Jump to

Keyboard shortcuts

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