gocrypto

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(key string, value string) (string, error)

AESDecrypt AES解密

func AESEncrypt

func AESEncrypt(key string, value string) (string, error)

AESEncrypt AES加密

func GenerateAESKey

func GenerateAESKey() string

GenerateAESKey 生成AES密钥

func GenerateRSAKey

func GenerateRSAKey() ([]byte, []byte, error)

GenerateRSAKey 生成RSA公钥和私钥

func GenerateRSAKeyBase64

func GenerateRSAKeyBase64() (string, string, error)

GenerateRSAKeyBase64 生成RSA公钥和私钥

func GenerateRSAKeyFile added in v0.2.2

func GenerateRSAKeyFile(privateKeyFile string, publicKeyFile string) error

GenerateRSAKeyFile 生成RSA公钥和私钥

func RSADecrypt

func RSADecrypt(privateKey string, value string) (string, error)

RSADecrypt RSA解密

func RSAEncrypt

func RSAEncrypt(publicKey string, value string) (string, error)

RSAEncrypt RSA 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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