Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Simple Crypt::CBC Sample?

by naChoZ (Curate)
on Feb 14, 2013 at 22:24 UTC ( #1018807=note: print w/replies, xml ) Need Help??


in reply to Simple Crypt::CBC Sample?

Instead of letting Crypt::CBC try and figure out a cipher on its own (where it's clearly picking 'Random' as the cipher you want to use in this case), you can specify one yourself...

my $cipher = Crypt::CBC->new( -key => $key, cipher => 'Rijndael' );

That will cause it to use Crypt::Rijndael for the cipher.

--
Andy

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018807]
help
Chatterbox?
erix counts their toes
[erix]: DBD::Pg 3.6.1 test has 'die;' then dies and fails wtf... (just below connect_database()
[erix]: I'm wondering what the idea could have been...
erix expletives
[shmem]: erix: counting them I get 20. What about you?

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-05-23 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?