Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPair ¶
func NewKeyPair ¶
func NewKeyPair() KeyPair
type LazyXChaCha ¶
type LazyXChaCha interface {
RandomKey() ([]byte, error)
Encrypt(plaintext string, key []byte) (string, error)
Decrypt(ciphertext string, key []byte) (string, error)
EncryptBytes(plaintext []byte, key []byte) ([]byte, error)
DecryptBytes(ciphertext []byte, key []byte) ([]byte, error)
}
func New ¶
func New() LazyXChaCha
Click to show internal directories.
Click to hide internal directories.
