in reply to Convenient Crypto
Sometime ago it occured to me that the CoreModule Digest::SHA could be used to en/decrypt data.
What? No. And don't invent your own encryption.
It takes two lines of code to encrypt and decrypt properly.
use Crypt::CBC qw( ); my $cipher = Crypt::CBC->new( -cipher => 'Blowfish', -key => 'my secret key', ); my $ciphertext = $cipher->encrypt("This data is hush hush"); my $plaintext = $cipher->decrypt($ciphertext);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convenient Crypto
by Anonymous Monk on Feb 04, 2011 at 18:42 UTC | |
by ikegami (Patriarch) on Feb 04, 2011 at 20:59 UTC | |
by Anonymous Monk on Feb 15, 2011 at 15:13 UTC | |
by ikegami (Patriarch) on Feb 15, 2011 at 18:12 UTC | |
by Anonymous Monk on May 20, 2011 at 18:58 UTC | |
|