Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Determine Encryption Strength - Crypt::CBC & OpenSSL::AES

by Anonymous Monk
on Aug 30, 2013 at 16:12 UTC ( [id://1051659]=note: print w/replies, xml ) Need Help??


in reply to Re: Determine Encryption Strength - Crypt::CBC & OpenSSL::AES
in thread Determine Encryption Strength - Crypt::CBC & OpenSSL::AES

Thanks! Yeah I use Crypt::CBC in conjunction just so you don't have to worry about padding to get the proper blocksize. From what I can tell from the documentation, while Crypt::OpenSSL::AES will support keysizes of 16, 24, or 32 bytes... if you use it with Crypt::CBC it will always be 32 bytes. As suggested I verified this with the keysize routine:

use Crypt::CBC; use Crypt::OpenSSL::AES; my $cipher = Crypt::CBC->new( -key => '1234567890123456', -cipher => 'Crypt::OpenSSL::AES', -header => 'none', -iv => '6543210987654321' ); print $cipher->keysize();

Again this will ALWAYS returns 32, or 256 bits.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1051659]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found