aes

package
v0.0.0-...-cafa723 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 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 CBC

type CBC struct {
	Text string
	// 必须是 16(AES-128)、24(AES-192) 或 32(AES-256) 位的 AES 密钥
	Secret string
}

func (CBC) Decrypt

func (c CBC) Decrypt(ciphertext string) (plaintext string, err error)

Decrypt AES-CBC 解密

func (CBC) Encrypt

func (c CBC) Encrypt() (ciphertext string, err error)

Encrypt AES-CBC 加密

Jump to

Keyboard shortcuts

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