java.lang.Object | +--Encryptor
Implements the Caesar Cipher.
| Constructor Summary | |
(package private) |
Encryptor()
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Encrypts a text file with a Caesar cipher, based on a shift count supplied on the command line. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
Encryptor()
| Method Detail |
public static void main(java.lang.String[] args)
Usage: Encryptor shiftwhere
shift is the amount to shift the input characters.
The program then requests the user to locate a text input file, which
it then uppercases (discarding punctuation and whitespace), encrypts,
and prints on standard output in 5-character blocks, 10 blocks per line.args[0] - the amount to shift each character.