How to Check Authenticity of an AJAX Request

后端 未结 15 866
悲&欢浪女
悲&欢浪女 2021-01-31 08:47

I am designing a web site in which users solve puzzles as quickly as they can. JavaScript is used to time each puzzle, and the number of milliseconds is sent to the server via A

15条回答
  •  清酒与你
    2021-01-31 09:17

    there is a very fast implementation of cryptography in js here

    http://crypto.stanford.edu/sjcl/

    it allows public / private key encryption all on the client and I think you can adapt it to encrypt the Ajax communication between your server and the client browser

    here is a detailed explanation, which you can adapt to your needs http://crypto.stanford.edu/sjcl/#usage

提交回复
热议问题