FAQ?
What is public-key cryptography?
Public-key cryptography, or asymmetric cryptography, is a cryptographic system that uses pairs of keys: public keys, which may be disseminated widely, and private keys, which are known only to the owner. The generation of such keys depends on cryptographic algorithms based on mathematical problems to produce one-way functions.
How to use crypto_box_keypair () function in NaCl?
C++ NaCl provides a crypto_box_keypair function callable as follows: #include "crypto_box.h" std::string pk; std::string sk; pk = crypto_box_keypair(&sk); The crypto_box_keypair function randomly generates a secret key and a corresponding public key. It puts the secret key into sk and returns the public key.
What is the best book on public key cryptography?
Christof Paar, Jan Pelzl, "Introduction to Public-Key Cryptography", Chapter 6 of "Understanding Cryptography, A Textbook for Students and Practitioners". (companion web site contains online cryptography course that covers public-key cryptography), Springer, 2009. Salomaa, Arto (1996). Public-Key Cryptography (2 ed.).
What is crypto_box () function?
#include "crypto_box.h" std::string pk; std::string sk; std::string n; std::string m; std::string c; c = crypto_box(m,n,pk,sk); The crypto_boxfunction encrypts and authenticates a message musing the sender's secret key sk, the receiver's public key pk, and a nonce n.