开发者

javascript encryption?

I don't want to use HTTPS

http://www.vector.safwanmanpower.com/

fill the username and click on any of buttons then click开发者_开发知识库 on show button you will get any sequence like 2-4-5-7 in alert box this sequence i've generated using javascript now i want to submit this sequence to save in database that is working but when i send this sequence it will go in plain text i want to encrypt this sequence and then decrypt it on server using php and save as it is 2-4-5-7 in database ?

how can i do this any javascript encryption which can't be consider as weak as javascript code is visible to user ?

so middle man sniffing will be difficult

how can i encrypt using javascript and decrypt it using php and store in db in above example ?

any other solution will help me


Is there any particular reason on why you want this encrypted client-side, only to decrypt it server-side? If you want to prevent the data from being caught by links between the client and the server, I'd suggest using SSL instead. The HTTPS protocol is a good way of securing the data being sent from and to the client.


Best solution if you don't want anyone sniffing what's passing on the network ?

Use HTTPS : all communications between the server and the clients will be encrypted.


how can i do this any javascript encryption which can't be consider as weak as javascript code is visible to user ?

so middle man sniffing will be difficult

JCryption will do this using public-key encryption.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜