Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Crypt::Rijndael

by sevensven (Pilgrim)
on Apr 15, 2002 at 23:52 UTC ( #159372=note: print w/replies, xml ) Need Help??


in reply to Crypt::Rijndael

Maybe a piece of code can help you.

use Crypt::CBC; use strict; my $cipher = Crypt::CBC->new( { 'key' => 'a' x 32, # change this to a decent key wi +th 32 chars 'cipher' => 'Rijndael', 'iv' => 'm_?.5fP}', 'regenerate_key'=> 0, 'padding' => 'space', 'prepend_iv' => 0 } ); my $data_to_encrypt = 'what\'s up, doc ?'; my $cipheredtext = $cipher->encrypt($data_to_encrypt); print "ciphered : $cipheredtext \n"; my $plaintext = $cipher->decrypt($cipheredtext); print "plaintext : $plaintext\n"; $cipher->finish;

Rijndael has implementations in several languages, so portability should not be an issue, but consider other, faster encryptions you should.

-- sevensven or nana korobi, ya oki

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-10-22 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (229 votes). Check out past polls.

    Notices?