Questions tagged [mcrypt-ecb]

2 questions
0
votes
1 answer

How to generate a 3DES ECB PHP compatible encrypted string from c#

I need to pass a 3DES encrypted string to a php web page from c# and i'm having no luck. In short the PHP code I am trying to convert is : $message = $request->get('searchHash'); $searchHash = base64_decode(rawurldecode($message)); $key…
Anthony Walters
  • 143
  • 1
  • 12
0
votes
0 answers

remove question mark on mcrypt_ecb() php function

I use this code for encrypt and decrypt string. but this code create question mark $key="123456789098776545433322"; $test=mcrypt_ecb (MCRYPT_3DES, $key, 'test', MCRYPT_ENCRYPT); $result=mcrypt_ecb (MCRYPT_3DES, $key, $test, MCRYPT_DECRYPT);
paranoid
  • 6,799
  • 19
  • 49
  • 86