Generate Keys

The Othentic CLI simplifies key generation and encryption into Keystore files.

Read More

Prerequisites

1

Run the encrypt command

If you already have raw keys generated using another tool, these can also be used directly in either raw format or as Keystore files.

otcli wallet encrypt --private-key <PRIVATE_KEY> --keystore-dir <KEYSTORE_PATH>
  • PRIVATE_KEY: A raw 32-byte private key to encrypt as keystore. If not supplied, CLI will auto-generate a new private key and proceed to encrypt it.

  • KEYSTORE_PATH: Path to the JSON-formatted Keystore file. If not supplied, a UUID-based filename will be auto-generated and saved under the .keystore directory.

2

Enter your password

This password will be used to decrypt the files. Make sure it's securely backed up.

3

Securely store the keystore file

The program will print the location and name of the created file.

It is recommended to create a secure backup of this file for easy recovery.

Last updated