PHP to Java
| From: | ceo at l-i-e dot com | Date: | Thu, 16 Oct 2008 20:50:56 +0000 |
| Subject: | PHP to Java | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-281998@lists.php.net to get a copy of this message | ||
For reasons we needn't go into, I need to convert this to Java:
$to_encode = "example.com/api?foo=bar";
$key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes
$td = mcrypt_module_open('tripledes', '', 'ecb', '');
mcrypt_generic_init ($td, $key, $iv);
$c_t = mcrypt_generic ($td, $to_encode);
I've been Googling for hours and tried all kinds of stuff, none of which came even close.
Any suggestions on a good reference or conversion program or something?...