TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Encrypt/Encode single php file?

3 pointsby realschoolover 13 years ago
We want to encrypt or encode a config file for our web based php app, any suggestions?

2 comments

whichdanover 13 years ago
I'm assuming the sysadmin cannot/would not edit the source?<p>If that's the case, a solution like IonCube might do the trick. Just make sure PDO connection errors aren't displayed/logged, since they may contain connection info.<p>You can also try restricting the sql user's access to the server's IP, but it still may be possible to connect directly from the server itself.<p>If the sysadmin can't access the db, who's managing the db server?
评论 #2966449 未加载
评论 #2966439 未加载
Egregoreover 13 years ago
Why would you like to do it? Against what kind of attacks this encryption should protect?
评论 #2965676 未加载