June 2018
Beginner
508 pages
13h 8m
English
Sometimes, using a shared secret is not the best option. In those cases, it might be useful to adopt a different technique. In this example, we are going to create a token (and decode it) using a pair of RSA keys.
Public key cryptography, or asymmetrical cryptography, is any cryptographic system that uses pairs of keys: public keys which may be disseminated widely, and private keys which are known only to the owner. If you are interested in learning more about this topic, please see the end of this chapter for recommendations.
Now, let's create two pairs of keys. One pair will have no password, and one will. To create them, I'm going to use the ssh-keygen utils from OpenSSH (https://www.ssh.com/ssh/keygen/ ...
Read now
Unlock full access