I plan to make an unforgettable login on an unencrypted ssl site by storing the username / password entered by the user in a javascript variable.
Each time a user executes a request, my application first requests a token from the server, and then combines it with the saved $ scope.password, hashed it, then sends it to the server for verification. If the check is correct, the request will continue, otherwise it will be stopped.
In addition, each time a check is performed, the server creates a new token, regardless of whether it is valid or not.
According to my information, it would be safe if I used direct functions, but since I am going to use angularjs, I do not think it is possible, so how can I guarantee that the username / password stored in memory is not hacked?
Thanks.
javascript angularjs security
john te
source share