crypto5

package
v0.0.0-...-651c771 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDERToRSA

func ConvertDERToRSA(data []byte) (*rsa.PublicKey, error)

Convert AWS KMS PUBLIC KEY to RSA Public Key

func DecryptWithAES

func DecryptWithAES(keyByte []byte, cipherText string) (string, error)

func EncryptWithAES

func EncryptWithAES(keyByte []byte, plainText string) string

func EncryptWithRSA

func EncryptWithRSA(public_key *rsa.PublicKey, data []byte, label []byte) ([]byte, error)

func GenerateRandomString

func GenerateRandomString(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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