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);
In reply to Re: Convenient Crypto
by ikegami
in thread Convenient Crypto
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |