//
pkg.gl
Category
github.com/keep-network/keep-common
pkg
encryption
package
1.7.0
Repository:
https://github.com/keep-network/keep-common.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
5
Dependents
6
Files
56 SLOC
#
Functions
NewBox
NewBox uses XSalsa20 and Poly1305 to encrypt and decrypt the plaintext with the key.
#
Constants
KeyLength
KeyLength represents the byte size of the key.
NonceSize
NonceSize represents the byte size of nonce for XSalsa20 cipher used for encryption.
#
Interfaces
Box
Box is a general interface to encrypt and decrypt an array of bytes.