Documentation ¶
Index ¶
- func ConvertDERToRSA(data []byte) (*rsa.PublicKey, error)
- func DecryptWithAES(keyByte []byte, cipherText string) (string, error)
- func EncryptWithAES(keyByte []byte, plainText string) string
- func EncryptWithRSA(public_key *rsa.PublicKey, data []byte, label []byte) ([]byte, error)
- func GenerateRandomString(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDERToRSA ¶
Convert AWS KMS PUBLIC KEY to RSA Public Key
func EncryptWithAES ¶
func EncryptWithRSA ¶
func GenerateRandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.