Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a form that saves sensitive data to the drive on the web server. I would like to encrypt this and allow viewers to de-crypt the file. Does anyone have an implementation of crypt::ideas I could look at as an example? The ISP is not supporting PGP until September. Thanks in advance, Sean

Replies are listed 'Best First'.
RE: crypt::ideas
by lhoward (Vicar) on May 24, 2000 at 19:05 UTC
    I assume you mean Crypt::IDEA:

    Perldoc Crypt::IDEA
    
    ....
    my $key = pack("H32", "0123456789ABCDEF0123456789ABCDEF");
    my $cipher = new IDEA $key;
    my $ciphertext = $cipher->encrypt("plaintex");  # NB - 8 bytes
    print unpack("H16", $ciphertext), "\n";
    

    However, this can not be used to encrypt the data between your webserver and the browser. If you want to do that you'll need to be running an SSL webserver.