Thread Perlstring AES Verschlüsselung (wie in PHP MCrypt) (3 answers)
Opened by kamil at 2013-10-21 21:14

kamil
 2013-10-21 21:14
#171379 #171379
User since
2013-10-21
1 Artikel
BenutzerIn
[default_avatar]
Im looking for an equivalent in perl for the folowing php script

Code: (dl )
1
2
3
4
5
6
7
8
$cp = mdecrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', '');

@mcrypt_generic_init($cp, $key,$key);

$enc = mdecrypt_generic($cp, $link);

mcrypt_generic_deinit($cp);
mcrypt_module_close($cp);


Tried the folowing:

Code: (dl )
1
2
3
use Crypt::Rijndael_PP ':all';

$plain = rijndael_decrypt($key, MODE_CBC, $crypted,128,128);


But this doesnt do the same... Does anybody know help?

modedit Editiert von GwenDragon: Titel erweitert
Last edited: 2013-11-04 20:02:29 +0100 (CET)

View full thread Perlstring AES Verschlüsselung (wie in PHP MCrypt)