Top 7.0% forks on proxy.golang.org
proxy.golang.org : github.com/benburkert/lockbox
Package lockbox simplified asymmetric encryption with NaCl. Lockbox uses NaCl's box API for public-key cryptography to provide a simplified API for asymmetric encryption. It is designed with the following goals: * Provide a simple convention for managing encryption & decryption keys. An encryption key is a PEM encoded NaCl box public key with title "LOCKBOX PUBLIC ENCRYPTION KEY", stored with the file extension ".ekey". A decryption key is a PEM encoded NaCl box private key with title "LOCKBOX SECRET DECRYPTION KEY", stored with the file extension ".dkey". * Provide a simplified API for setup & encryption/decryption. The Encryptor & Decryptor types are constructed with their corresponding key. The types have a single Encrypt/Decrypt method that take a cleartext/ciphertext byte slice parameter and returns a ciphertext/cleartext byte slice. * Design the Encryptor so that it cannot decrypt the output of Encrypt once the function has returned. Isolating the role of decryption from encryption should be straightforward and easy. Install lockbox via go get: Generate a new keypair: Encrypt a message: Decrypt the message: Encrypt & print a message: Decrypt & print the message: Lockbox does not prevent a hostile party with access to the encryption key from replacing a message with a forgery. In this case, the decryptor is unable to detect if a message is a forgery. Lockbox data should only be transported over secure channels.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/benburkert/lockbox
License: MIT
Latest release: almost 11 years ago
First release: almost 11 years ago
Namespace: github.com/benburkert
Stars: 5 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 4 months ago