UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
ENCORE5
ENCORE
BOX
COMMAND
GO
crypt
SYNTAX
crypt [ password ]
FUNCTION
crypt encrypts and decrypts files. crypt
reads from the standard input and writes to
the standard output. The password is a
key that selects a particular transformation.
NOTE:
The same password is used for decryption as
for encryption.
(crypt implements a one-rotor machine designed
along the lines of German Enigma, but with a
256-element rotor.)
Let us assume that the file test
contains the following data:
The data in this file
is to be encrypted with
a secret password!
The command to encrypt this file with
the key secret and redirect the
output to the file new_test is:
crypt secret < test > new_test
The contents of the file new_test are listed above:
1FiufiduIFOUDOFUSIUF32&^&%^%&^%
ask21348UIOEUW!@^@*&FDSFJH#*$(&$SDHF
Now try to decrypt the new_test file and
send the result to the standard output by
typing crypt < new_test
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, You understand the concept.
Please type crypt < new_test
Please type crypt < new_test
You will be helped this time!
$PROMPT$
FORGET1
crypt < new_test
Observe the result on the terminal!
Enter key:
Any key will be accepted; however, the only key that will do
the decryption is the encryption key, i.e., secret!
Enter key:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type secret
Please type secret
You will be helped this time!
Enter key:
Enter key:
FORGET2
Enter key:
Observe the result on the terminal!
The data in this file
is to be encrypted with
a secret password!
$PROMPT$
Xenix System V installations do not have
the crypt utility due to DOD regulations.