Documentation ¶
Index ¶
- Variables
- func AESDecrypt(encryptedMessage string, decryptionKey string) (string, error)
- func AESEncrypt(message string, encryptionKey string) (string, error)
- func RSADecrypt(encryptedMessage string, decryptionKey string) (string, error)
- func RSAEncrypt(message string, encryptionKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadAESKeyLength = errors.New("AES key is not 32 bytes long")
View Source
var ErrBadEncryptedMessageEncoding = errors.New("encrypted message is not in base64")
View Source
var ErrUnsupportedPrivateKeyType = errors.New("decryption key is not a RSA private key")
View Source
var ErrUnsupportedPublicKeyType = errors.New("encryption key is not a RSA public key")
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.