package
1.7.0
Repository: https://github.com/keep-network/keep-common.git
Documentation: pkg.go.dev

# Functions

NewBox uses XSalsa20 and Poly1305 to encrypt and decrypt the plaintext with the key.

# Constants

KeyLength represents the byte size of the key.
NonceSize represents the byte size of nonce for XSalsa20 cipher used for encryption.

# Interfaces

Box is a general interface to encrypt and decrypt an array of bytes.