It is now been a couple of days that I try to find a way of encrypting an information (e.g. password) in Javascript, using RC4, passing it to the server via Web Service and opening it on the server side.
Despite numerous attempts it still does not work. The opened information on the server side does not match the initial input (problem with accentuated characters, among others).
However, distinct tests on each side reveals that RC4 routines work (javascript encrypting -> decrypting OK and Server encrypting -> decrypting OK).
In order to transfer the encrypted information from Javascript to the Server I use Base64 encoding (based on UTF8).
boeledi
Member
38 Points
26 Posts
RC4 between javascript and web server
Nov 21, 2011 01:08 PM|LINK
Hi,
It is now been a couple of days that I try to find a way of encrypting an information (e.g. password) in Javascript, using RC4, passing it to the server via Web Service and opening it on the server side.
Despite numerous attempts it still does not work. The opened information on the server side does not match the initial input (problem with accentuated characters, among others).
However, distinct tests on each side reveals that RC4 routines work (javascript encrypting -> decrypting OK and Server encrypting -> decrypting OK).
In order to transfer the encrypted information from Javascript to the Server I use Base64 encoding (based on UTF8).
Would anybody have a working sample for me?
Many thanks