![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/9/c4/9c4432ed-94b6-4f82-9d47-c9fb5f98b613/9c4432ed-94b6-4f82-9d47-c9fb5f98b613-bg161.png)
Appendix A Command-Line Demos 331
Command-Line Demo User’s Guide
• the name and location of the file that contains the encrypted data
• the name and location of the of the file that contains the encrypted DES key
• the name and location of the of the file that contains the IV
• the name of the file where the decrypted content should be stored. To print
the content to the screen instead, use a hyphen (-) as the file name.
• the recipient’s user number
3. BDEMO uses the recipient’s private key to recover the DES key. It then uses the
DES key to decrypt the data and saves it to the specified file. If a hyphen was
entered as the output file name, it prints the decrypted data to the screen instead
of saving it to a file.
Generate a Key Pair
Use BDEMO to generate a new RSA key pair. However, this is only for demonstration
purposes, and does not generate cryptographically secure RSA keys. BDEMO will generate
an RSA public/private key pair, but the keys are lost when you exit BDEMO.
To generate a key pair:
1. Enter “g” at the top-level menu.
2. You will be prompted in succession for:
• the key size in bits
• some seed information
3. BDEMO generates the key pair and keeps it as the key pair for User 3. Once a
keypair has been generated, you may not generate another during the same
BDEMO session.
Depending on the key size and the speed of the computer, key pair generation may
take from a few seconds to several minutes.