I need a suggestion on possible safe places to store a plaintext password temporarily (not more than few minutes usually a few seconds, lets say). I can't hash it, I need it in plaintext.
Let's say the user in question is accessing this page from a public library. With their security in mind I want to store this in a secure place, at the same time I don't want it to be easily retrievable by someone who has access to the server either, I want them to jump through as many hoops as possible before they can see that password.
Which would you think would be the best choices for storing it in this case?
- $_SESSION
- Database entry that is removed later.
- Created in a file on the server, removed later.
- In a cookie, and then deleted later.
- On the page, in a hidden input field.