Class Encryptor

java.lang.Object
  |
  +--Encryptor

class Encryptor
extends java.lang.Object

Implements the Caesar Cipher.

Version:
1.0
Author:
David Matuszek

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encryptor

Encryptor()
Method Detail

main

public 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.

Usage: Encryptor shift
where 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.
Parameters:
args[0] - the amount to shift each character.


Generated by BlueJ