rsautil

package
v1.0.1-0...-bd443ad Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRsaKey

func GenRsaKey(bits int) error

func ParseRsaPrivateKey

func ParseRsaPrivateKey(pemstr string) (*rsa.PrivateKey, error)

func ParseRsaPrivateKeyFromBase64

func ParseRsaPrivateKeyFromBase64(bytes string) (*rsa.PrivateKey, error)

func ParseRsaPublicKey

func ParseRsaPublicKey(pubPEMData string) (*rsa.PublicKey, error)

func ParseRsaPublicKeyFromBase64

func ParseRsaPublicKeyFromBase64(bytes string) (*rsa.PublicKey, error)

func RsaCheckSign

func RsaCheckSign(paramStr, base64Sign string, key *rsa.PublicKey) error

RsaCheckSign 验证

func RsaEncryptOutBase64

func RsaEncryptOutBase64(str string, key *rsa.PublicKey) (string, error)

RsaEncryptOutBase64 对法人信息等敏感字段进行rsa加密

func RsaSignStringOutBase64

func RsaSignStringOutBase64(str string, key *rsa.PrivateKey) (string, error)

RsaSignStringOutBase64 签名

Types

This section is empty.

Jump to

Keyboard shortcuts

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