sha256util

package module
v0.0.0-...-4fd775f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRsaKey

func GenRsaKey() (string, string, error)

RSA公钥私钥产生

func RsaDecrypt

func RsaDecrypt(ciphertext, keyBytes string) (string, error)

私钥解密

func RsaEncrypt

func RsaEncrypt(data, keyBytes string) (string, error)

公钥加密

func RsaSignWithSha256

func RsaSignWithSha256(data, keyBytes string) (string, error)

签名

func RsaVerySignWithSha256

func RsaVerySignWithSha256(data, signData, keyBytes string) (bool, error)

验证

Types

This section is empty.

Jump to

Keyboard shortcuts

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