rsas

package
v3.0.0-...-8a73552 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptOAEP

func DecryptOAEP(cipher secret.Cipher, data interface{}) (plainText []byte, err error)

DecryptOAEP RSA EncryptOAEP 解密

func EncryptOAEP

func EncryptOAEP(cipher secret.Cipher, data interface{}) (cipherText string, err error)

EncryptOAEP RSA EncryptOAEP 加密敏感信息

func SignSHA256WithRSA

func SignSHA256WithRSA(cipher secret.Cipher, data interface{}) (signature string, err error)

SignSHA256WithRSA SHA-256 with RSA 签名

func VerifySHA256WithRSA

func VerifySHA256WithRSA(cipher secret.Cipher, signText, plainText string) (err error)

VerifySHA256WithRSA 验证SHA256-RSA签名

Types

This section is empty.

Jump to

Keyboard shortcuts

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