Documentation ¶
Index ¶
- func Decrypt(ciphertextBase64 string) ([]byte, error)
- func DecryptInt64(in string) (int64, error)
- func DecryptWithKey(ciphertextBase64 string, encryptionKey []byte) ([]byte, error)
- func Encrypt(plaintext []byte) (string, error)
- func EncryptInt64(in int64) (*string, error)
- func EncryptInt64WithKey(in int64, encryptionKey []byte) (*string, error)
- func EncryptWithKey(plaintext []byte, encryptionKey []byte) (string, error)
- func ParseRSAPublicKeyFromPEM(keyPEM string) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptInt64 ¶
func DecryptWithKey ¶
DecryptWithKey decrypts the given ciphertext using AES-GCM.
func EncryptInt64 ¶
func EncryptInt64WithKey ¶
EncryptWithKey encrypts the given plaintext using AES-GCM.
func EncryptWithKey ¶
EncryptWithKey encrypts the given plaintext using AES-GCM.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.