Versions in this module Expand all Collapse all v1 v1.0.1 Oct 17, 2020 Changes in this version + const KeyBytes + const NonceBytes + type Key struct + func FromBytes(k []byte) (*Key, error) + func FromString(k string) (*Key, error) + func New() *Key + func NewRandom() (*Key, error) + func (k *Key) Bytes() []byte + func (k *Key) Decrypt(ciphertext []byte) ([]byte, error) + func (k *Key) Encrypt(plaintext []byte) ([]byte, error) + func (k *Key) MarshalBinary() ([]byte, error) + func (k *Key) String() string