Security guides

Generating Keys using eosio-keygen

Lesson 6 Chapter 3

Generating keys with our key generator is rather simple. All you need to do is open a terminal (ctrl+alt+t) and write: eosio-keygen, then hit enter. 

 $ eosio-keygen

This will give you the following:

xubuntu@xubuntu ~$ eosio-keygen
Private: 5KbzCcGWFe5UA6kazxn2nf5GjrxH4CcaksMn9GdLA4oJGxsdc8d
Public: EOS5JyWjWAix52XjbtRC417DfDzzypqW3irZmkbZwmgqG5y2uHNNK

If you want the keys to be outputted directly into a file, simply do the following

xubuntu@xubuntu ~$ eosio-keygen >> Desktop/keys

This will create a file and put a key inside it, hitting the command multiple times will give you multiple keys in the same file.

xubuntu@xubuntu ~$ eosio-keygen >> Desktop/keys
xubuntu@xubuntu ~$ eosio-keygen >> Desktop/keys
xubuntu@xubuntu ~$ eosio-keygen >> Desktop/keys

You can locate and open the file by double clicking it on the desktop. 

Storing your keys

You can store them however you like. Write the private key down in a piece of paper, or encrypt it (you will learn how later in the course). 

You may also simply take the file and put it on another USB thumbdrive, just remember if it's in a plain file, anyone that can access your thumbdrive can access the key.