3 ms·
Store them as a file on disk which you read in when necessary. The separation this provides gives you two benefits: First, you don't need to worry about "sanit
by cperciva 17y ago
Store them as a file on disk which you read in when necessary. The separation this provides gives you two benefits: First, you don't need to worry about "sanitizing" your source code if you ever want anyone else to look at it; and second, it makes it easy to use separate accounts for development vs. production.
- YuriNiyazov 17y agoThank you. Should I bother with encrypting that file, or plaintext is fine?
- elcron 17y agoEncryption is probably irrelevant because the password for it will be in the code, although it will make it slightly harder if someone gains access to your server.