|
|
|
|
|
by cjfont
4478 days ago
|
|
When I have a simple app send a password to the server, I like to generate a hash on the client side and then rehash again on the server for storing. As far as APIs, the good ones will hash your secret key together along with other data unique to your HTTP request, in particular the headers and the datetime. This is a good idea because: 1. you are not sending your secret key in clear text 2. it makes it difficult for a man-in-the-middle attack because they cannot just take your hash from one of your requests since it will be invalid after received or if some time has elapsed. For an example, see how Knox sets up requests for Amazon AWS:
https://github.com/LearnBoost/knox |
|
I'm confused. What do you do with that hash then?