xcrypto

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAESBase64

func DecryptAESBase64(encoded string, key []byte) (string, error)

解密 base64 编码的 AES 加密字符串

func EncryptAESBase64

func EncryptAESBase64(plaintext string, key []byte) (string, error)

使用 AES-256-CBC 加密并 base64 编码输出

func GenerateRandomKey

func GenerateRandomKey() ([]byte, string, error)

生成 32 字节随机密钥(256-bit)

Types

This section is empty.

Jump to

Keyboard shortcuts

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