bronto has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks
We have a PHPChain database that, for reasons I can't explain here, we would like to dump into a CSV or Excel file
Of course, we could extract data from the underlying MySQL database with DBI and write it to, say, an Excel sheet with Spreadsheet::WriteExcel, but we need to decrypt the data stored in the database.
PHPChain encrypts and decrypts the data using these PHP functions:
function encrypt ($key, $data, $iv) { return mcrypt_encrypt (MCRYPT_BLOWFISH, $key, $data, MCRYPT_MO +DE_CBC, $iv); } function decrypt ($key, $data, $iv) { return mcrypt_decrypt (MCRYPT_BLOWFISH, $key, $data, MCRYPT_MO +DE_CBC, $iv); }
Do you know any way to decrypt the so-encrypted data with Perl?
Thanks a lot in advance
Ciao!
--bronto
In theory, there is no difference between theory and practice. In practice, there is.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Decrypting PHP-encrypted data with Perl
by zejames (Hermit) on Nov 29, 2004 at 09:52 UTC | |
Re: Decrypting PHP-encrypted data with Perl
by gaal (Parson) on Nov 29, 2004 at 09:51 UTC | |
Re: Decrypting PHP-encrypted data with Perl
by zentara (Archbishop) on Nov 29, 2004 at 11:42 UTC | |
Re: Decrypting PHP-encrypted data with Perl
by DrHyde (Prior) on Nov 30, 2004 at 09:14 UTC | |
by bronto (Priest) on Dec 01, 2004 at 11:20 UTC | |
by Anonymous Monk on Nov 30, 2004 at 09:37 UTC |
Back to
Seekers of Perl Wisdom