encryption

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(src string) (string, error)

执行PBE解密。 src 密文。 返回对应的明文。

func Encrypt

func Encrypt(src string) (string, error)

执行PBE加密。 src 明文。 返回对应的密文。

func InitPBE

func InitPBE(p string) error

初始化`PBE算法`。 p `PBE算法`使用的密钥,不能少于8个字符。

func TryDecrypt

func TryDecrypt(src string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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