[PHP] Re: PHP to Java

2008-10-16 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: 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

[PHP] Re: PHP to Java

2008-10-16 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: 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