Thread string codieren
(37 answers)
Opened by Froschpopo at 2005-10-24 09:32 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 use Crypt::CBC; # create a cipher object with cipher block chaining mode using the Blowfish algorithm my $Cipher = Crypt::CBC->new( {'key' => 'my secret key', 'cipher' => 'Blowfish', 'iv' => $iv, 'regenerate_key' => 0, # default true 'padding' => 'space', 'prepend_iv' => 0, 'pcbc' => 1 #default 0 }); $Cipher->encrypt_hex(...); Das sollte hinreichend sicher sein und liefert auch nur hex-output. Gruß
Thomas |