in reply to 256 bit AEC encryption using Crypt::CBC
#!/usr/local/bin/perl use strict; use warnings; use Crypt::CBC; my $key = 'little brown mouse'; my $cipher = Crypt::CBC->new( -key => $key, -keylength => '256', -cipher => "Crypt::OpenSSL::AES" ); my $encrypted = $cipher->encrypt_hex($key); my $decrypted = $cipher->decrypt_hex($encrypted); print $encrypted, "\n"; print $decrypted, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 256 bit AEC encryption using Crypt::CBC
by Anonymous Monk on Dec 18, 2009 at 23:24 UTC | |
by Khen1950fx (Canon) on Dec 19, 2009 at 07:50 UTC |