#!/usr/bin/perl use CGI qw(:all); use Crypt::RC4; use strict; my $encrypted = param("encrypted"); my $decrypted = RC4($encrypted,"mykey"); print "Content-Type: text/html\n\n"; print "Encrypted Data: $encrypted

"; print "Decrypted Data: $decrypted

"; #### my $encrypted = RC4("thisisatest",'This is a test'); my $decrypted = RC4("thisisatest",$encrypted);