ToolsCrypto

package
v0.0.0-...-332b391 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RsaDecryptWithSha1Base64

func RsaDecryptWithSha1Base64(encryptedData, privateKey string) (string, error)

RsaDecryptWithSha1Base64 (2)解密:对采用sha1算法加密后转base64格式的数据进行解密(私钥PKCS1格式)

func RsaEncryptWithSha1Base64

func RsaEncryptWithSha1Base64(originalData, publicKey string) (string, error)

RsaEncryptWithSha1Base64 (1)加密:采用sha1算法加密后转base64格式

func RsaSignWithSha1Hex

func RsaSignWithSha1Hex(data string, prvKey string) (string, error)

RsaSignWithSha1Hex (3)签名:采用sha1算法进行签名并输出为hex格式(私钥PKCS8格式)

func RsaVerySignWithSha1Base64

func RsaVerySignWithSha1Base64(originalData, signData, pubKey string) error

RsaVerySignWithSha1Base64 (4)验签:对采用sha1算法进行签名后转base64格式的数据进行验签

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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