aes

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(cipherText string, secret string) (string, error)

func AesEncrypt

func AesEncrypt(plainText string, secret string) (string, error)

Types

type Aes

type Aes interface {

	// Encrypt
	Encrypt(encryptStr string) (string, error)

	// Decrypt
	Decrypt(decryptStr string) (string, error)
	// contains filtered or unexported methods
}

func New

func New(key, iv string) Aes

func NewWithUrl

func NewWithUrl(key, iv string, url bool) Aes

Jump to

Keyboard shortcuts

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