Versions in this module Expand all Collapse all v0 v0.1.0 Apr 4, 2022 Changes in this version + var ErrBadAESKeyLength = errors.New("AES key is not 32 bytes long") + var ErrBadEncryptedMessageEncoding = errors.New("encrypted message is not in base64") + var ErrUnsupportedPrivateKeyType = errors.New("decryption key is not a RSA private key") + var ErrUnsupportedPublicKeyType = errors.New("encryption key is not a RSA public key") + 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)