rsax

package
v0.0.0-...-e7df723 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeKeyBase64

func DecodeKeyBase64(data []byte) (string, string, error)

func DecodeKeyHex

func DecodeKeyHex(data []byte) (string, string, error)

func DecryptByBase64

func DecryptByBase64(base64CipherText, base64PriKey string) ([]byte, error)

func DecryptByHex

func DecryptByHex(hexCipherText, hexPriKey string) ([]byte, error)

func EncryptToBase64

func EncryptToBase64(plainText []byte, base64PubKey string) (string, error)

func EncryptToHex

func EncryptToHex(plainText []byte, hexPubKey string) (string, error)

func GenerateKeyBase64

func GenerateKeyBase64(bits int) (string, string, error)

func GenerateKeyHex

func GenerateKeyHex(bits int) (string, string, error)

func LoadKeyBase64

func LoadKeyBase64(filename string) (string, string, error)

func LoadKeyHex

func LoadKeyHex(filename string) (string, string, error)

func SignWithSha256Base64

func SignWithSha256Base64(data []byte, priKey string) (string, error)

func SignWithSha256Hex

func SignWithSha256Hex(data []byte, priKey string) (string, error)

func VerifySignWithSha256Base64

func VerifySignWithSha256Base64(data []byte, base64Sign, base64PubKey string) error

func VerifySignWithSha256Hex

func VerifySignWithSha256Hex(data []byte, hexSign, hexPubKey string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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