#! /usr/bin/perl use warnings; use strict; use CGI::Carp 'fatalsToBrowser'; # Use the CGI library use CGI; $CGI::DISABLE_UPLOADS = 1; # No file uploads $CGI::POST_MAX = 512 * 1024; # Form may not exceed 512KiB my $cgi = new CGI; # Use our RC4 library use CSCI162_RC4; # HTTP header print $cgi->header(-charset => 'UTF-8'); # This string represents a float: left break my $break = q(
This program accepts a key and a stream of text and operates on it using the ARCFOUR (unofficial implementation of RC4) stream cipher as implemented in our project. The encrypted form of a message generally contains some non-text characters that possibly won't be handled correctly by the web browser. Therefore, the encrypted form can be represented in either hexadecimal digits or in Base64 encoding.
This application is a demonstration only; using it on a remote server will allow your message to travel over public channels in the clear!