rsax

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeKeyBase64 added in v1.0.5

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

func DecodeKeyHex added in v1.0.5

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

func DecryptByBase64 added in v1.0.2

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

func DecryptByHex added in v1.0.2

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

func EncryptToBase64 added in v1.0.2

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

func EncryptToHex added in v1.0.2

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

func GenerateKeyBase64 added in v1.0.3

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

func GenerateKeyHex added in v1.0.3

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

func LoadKeyBase64 added in v1.0.5

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

func LoadKeyHex added in v1.0.5

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

func SignWithSha256Base64 added in v1.0.4

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

func SignWithSha256Hex added in v1.0.4

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

func VerifySignWithSha256Base64 added in v1.0.4

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

func VerifySignWithSha256Hex added in v1.0.4

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