Hello, I need to javascript encrypt information before sending over http and I'd like to know how I can encrypt and decrypt can then easily from php. Anyone know how I do it?. Thank you.
Page 1 of 1
Javascript encrypt and decrypt in PHP
#2
Posted 14 March 2010 - 09:45 PM
Why you want to do this? There are encryption implementations for both JavaScript and PHP. But note that a JavaScript <> PHP encryption/decryption can't be secure since the algorithm and encryption key must be public in the javascript. You can only strengthen it by obfuscating the javascript code (making it unreadable, hiding the secure key).
Why is a secure connection (https) no option in this case?
Why is a secure connection (https) no option in this case?
#3
Posted 09 August 2010 - 08:55 AM
Y!!, on 14 March 2010 - 09:45 PM, said:
Why you want to do this? There are encryption implementations for both JavaScript and PHP. But note that a JavaScript <> PHP encryption/decryption can't be secure since the algorithm and encryption key must be public in the javascript. You can only strengthen it by obfuscating the javascript code (making it unreadable, hiding the secure key).
Why is a secure connection (https) no option in this case?
Why is a secure connection (https) no option in this case?
I agree. It just makes sense to use https.
Share this topic:
Page 1 of 1

Help














