I am pulling down some html via a login. Is there anyway to have my password not typed out in plain text in the code? Is there some obfuscation technique I could use?
Ideally I would like a file that contains my password that is separate from the source code that I would like to share. Something that loads the password kept in \docs\mypass.txt would work great. I could then modify this to do a simple unscramble of my real password so I could keep a scrambled version in mypass.txt
There has to be some easy way to do a find and replace on <<mysecretepassword>>
and source it from a text file.
<% register.ZServLogin.grabItems("ClimbElCap", "<<mysecretpassword>>").each do |item| %>
File.read("filename.txt")
), read the environment (ENV["MY_ENV_VARIABLE"]
) and do all other kinds of magic. - PSkocik