php Programming Glossary: key.length
Mcrypt js encryption value is different than that produced by PHP mcrypt / Mcrypt JS decrypt doesn't work for UTF-8 chars http://stackoverflow.com/questions/18786025/mcrypt-js-encryption-value-is-different-than-that-produced-by-php-mcrypt-mcryp issue in mcrypt.js is at lines 63 and 64 change this if key.length 32 key Array 33 key.length .join String.fromCharCode 0 to this.. lines 63 and 64 change this if key.length 32 key Array 33 key.length .join String.fromCharCode 0 to this if key.length 16 key Array.. Array 33 key.length .join String.fromCharCode 0 to this if key.length 16 key Array 17 key.length .join String.fromCharCode 0 else..
|