We store all our application and db passwords in plain text in source control. We do this as our build/deploy process generates required configuration files and also does a
If doing in C you could store in as an array of characters and put the characters in as decimal references. Not sure if this will break strings or not, but might help to alleviate some of that problem.