|
|
coherent
crypt Command crypt
Encrypt/decrypt text
ccrryypptt [_p_a_s_s_w_o_r_d]
The command crypt encrypts data. It emulates a rotor-encryption
machine, such as the Enigma or Hagelin C-48 cipher machines.
Unlike these machines, crypt uses only one rotor, with a 256-
character alphabet and a keying sequence of period 2^32.
crypt reads text from standard input and writes the encrypted
text to standard output. password is used to construct the model
of the machine and to start the keying sequence. If no password
is given, crypt prompts for a password on the terminal and dis-
ables echo while it is being typed in. The password may be up to
ten characters long, but must not be empty; all characters past
the first ten are ignored. All characters are legal, although it
may not be possible to input certain characters from the ter-
minal.
crypt uses the same password for both encryption and decryption.
For example, the commands
crypt COHERENT <file1 >file2
crypt COHERENT <file2 >file3
leave file3 identical to file1.
Encrypted files produced by ed with its -x option may be read by
crypt, and vice versa, as ed uses crypt to perform its encryp-
tion.
Security of a cryptosystem depends on several factors:
11. Brute-force attempts to break the system should be infeasible.
Passwords should be at least five characters long; although
the construction of the machine model from the password takes
a substantial fraction of a second, it is still plausible that
encrypted files could be read by a brute-force search of a
portion of the password space (say, all passwords less than
four characters long).
22. Cryptanalysis of the basic encryption scheme should be very
hard. Analysis of rotor machines is understood, but it is
difficult and in most cases probably not worth the trouble.
33. Passwords must be kept secret. crypt erases password as soon
as it can, to avoid the possibility that it could appear in
the output of ps.
44. Privileged access to the system must be guarded. Under
COHERENT, the security of crypt can be no better than the
security governing access to superuser status, because the su-
COHERENT Lexicon Page 1
crypt Command crypt
peruser can do practically anything. This is probably crypt's
most vulnerable point.
***** Files *****
/ddeevv/ttttyy -- Typed passwords
***** See Also *****
commands
Kahn D: _T_h_e _C_o_d_e _B_r_e_a_k_e_r_s. New York, Macmillan, 1967.
Morris R: The Hagelin cipher machine (M-209). _C_r_y_p_t_o_l_o_g_i_a, July
1978.
COHERENT Lexicon Page 2
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.