rsa

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRsaKey

func GenRsaKey() (prvkey, pubkey []byte, err error)

GenRsaKey RSA公钥私钥产生

func RsaDecrypt

func RsaDecrypt(ciphertext, keyBytes []byte) ([]byte, error)

RsaDecrypt 私钥解密

func RsaEncrypt

func RsaEncrypt(data, keyBytes []byte) ([]byte, error)

RsaEncrypt 公钥加密

func RsaSignWithSha256

func RsaSignWithSha256(data []byte, keyBytes []byte) ([]byte, error)

RsaSignWithSha256 签名

func RsaVerySignWithSha256

func RsaVerySignWithSha256(data, signData, keyBytes []byte) (bool, error)

RsaVerySignWithSha256 验证

Types

This section is empty.

Jump to

Keyboard shortcuts

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