Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Crypt::Rijndael

by sevensven (Pilgrim)
on Apr 15, 2002 at 23:52 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://159372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found