in reply to Short & Sweet Encryption?
Note: I'm assuming that when you said "it does not need to be secure" you really meant "it does not need to be secure".use strict; use warnings; my $string = 'hello world!!'; my $passphrase = 'my passphrase'; my $encrypted_string = $string ^ $passphrase; print $encrypted_string, "\n"; my $decrypted_string = $encrypted_string ^ $passphrase; print $decrypted_string, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Short & Sweet Encryption?
by thor (Priest) on Jul 30, 2006 at 15:21 UTC | |
by Anonymous Monk on Jul 30, 2006 at 15:55 UTC | |
by thor (Priest) on Jul 30, 2006 at 20:50 UTC | |
by syphilis (Archbishop) on Jul 30, 2006 at 23:12 UTC |