nk
is a command line tool that generates nkeys
. NKeys are a highly secure public-key signature system based on Ed25519.NKey is an awesome replacement for token authentication, because a connecting client will have to prove it controls the private key for the authorized public key.
nk
tool from https://github.com/nats-io/nkeys/tree/master/nk repository. If you have go installed, enter the following at a command prompt:S
for Seed. The second letter U
stands for User. Seeds are private keys; you should treat them as secrets and guard them with care.U
for User, and is a public key which can be safely shared.