I have a small CF9 app, no database involved. In the configuration I need to store a network password which one of the functions needs, but I don't want to have it stored in the Application.cfc (for example) in human readable form.
What's the best way of storing/reading the password?
Step 1: On a web page that is not going into production, run:
That will show a hash of the password.
Step 2: On a web page that is going into production, add the hash to a variable such as
application.pass_hash
. Verify againstpass_hash
as needed.