Documentation
¶
Index ¶
- func DecryptToByte(ciphertext, key []byte) ([]byte, error)
- func DecryptToByteChaCha20Poly1305(ciphertext, key []byte) ([]byte, error)
- func DecryptToString(ciphertext, key string) (string, error)
- func DecryptToStringChaCha20Poly1305(ciphertext, key string) (string, error)
- func EncryptToByte(value, key []byte) ([]byte, error)
- func EncryptToByteChaCha20Poly1305(value, key []byte) ([]byte, error)
- func EncryptToString(value, key string) (string, error)
- func EncryptToStringChaCha20Poly1305(value, key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptToByte ¶
DecryptToByte decrypts the given ciphertext using AES-GCM.
func DecryptToByteChaCha20Poly1305 ¶
DecryptToByteChaCha20Poly1305 decrypts the given ciphertext using ChaCha20-Poly1305.
func DecryptToString ¶
DecryptToString decrypts the given base64-encoded ciphertext using AES-GCM.
func DecryptToStringChaCha20Poly1305 ¶
DecryptToStringChaCha20Poly1305 decrypts the given base64-encoded ciphertext using ChaCha20-Poly1305.
func EncryptToByte ¶
EncryptToByte encrypts the given value using AES-GCM.
func EncryptToByteChaCha20Poly1305 ¶
EncryptToByteChaCha20Poly1305 encrypts the given value using ChaCha20-Poly1305.
func EncryptToString ¶
EncryptToString encrypts the given value using AES-GCM and encodes the result in base64.
func EncryptToStringChaCha20Poly1305 ¶
EncryptToStringChaCha20Poly1305 encrypts the given value using ChaCha20-Poly1305 and encodes the result in base64.
Types ¶
This section is empty.