secretbox
secretbox is a cryptographic primitive that provides authenticated encryption. It combines a symmetric encryption algorithm with a message authentication code (MAC) in a way that is generally considered more secure and efficient than applying them separately. The primary goal of secretbox is to ensure both the confidentiality and integrity of a message. This means that secretbox not only makes a message unreadable to unauthorized parties but also allows the recipient to verify that the message has not been tampered with during transmission.
The standard implementation of secretbox typically uses a stream cipher for encryption and a MAC algorithm
When a recipient receives a secretbox-encrypted message, they use the same secret key and nonce to decrypt