There are several ways to provide the secret key to the program. By default, the program prompts the user on the controlling terminal for the key, using getpass(3). This is the only safe way of providing it.
Alternatively, the key can be provided as the sole command-line
when starting the program.
Obviously, this way the key can easily be
spotted by other users running
As yet another alternative,
can be given the option
When specifying the option
used to obtain the secret key when option
man enigma | enigma > encrypted Enter key: (XXX — key not echoed)
This will create an encrypted form of this man page, and store it in the file encrypted.
enigma XXX < encrypted
This displays the previously created file on the terminal.
|May 8, 2018
|I'm not interested in developing a powerful brain. All I'm after is just a mediocre brain, something like the President of the American Telephone and Telegraph Company.
|— Alan Turing