As I am using more web services it seems that I am having to store more user ids and passwords in my ini file. My ini file is buried in my app files to there is no direct path from my web site but they are wide open if my server was hacked. I have thought about encrypting the values but I would still need a key to decrypt and the key could be found in my code. So back to my question, how do you guys do this?
Thanks.
--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.
For information or project assistance please visit :
http://www.360psg.com
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
This is why oAuth is becoming a more widely accepted form of cross site authentication. You simply store a token as opposed to a username and password. That token is used on a per request basis and allows you to not have to worry about your users' passwords ever. That said...
In your case you could use something like blowfish or the built-in PHP encryption functions. But like you said, if your server is ever compromised then so would your encryption methodologies. Still, something to consider is the likelihood of server compromise and the likelihood that the information you store on your server being the subject of theft and/or subsequent abuse. If that's the case you could always set up a second store house on another server (or even on your server under a different domain) and make an API call of your own to your own storehouse to request the information you seek, making sure the enforce your own security policies as part of the request (like IP, hostname, hashes of system defined files/strings, etc). Just an idea for you. Not saying this is a preferred way, or even a recommended way, of handling your situation.
On Fri, Mar 23, 2012 at 8:39 AM, Jimboidaho <jimbo...@gmail.com> wrote:
As I am using more web services it seems that I am having to store more user ids and passwords in my ini file. My ini file is buried in my app files to there is no direct path from my web site but they are wide open if my server was hacked. I have thought about encrypting the values but I would still need a key to decrypt and the key could be found in my code. So back to my question, how do you guys do this?
Thanks.
--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.
For information or project assistance please visit :
http://www.360psg.com
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professional-PHP@googlegroups.com
To unsubscribe from this group, send email to Professional-PHP-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
ashore <sho...@gmail.com> wrote:
>Why won't storing the password hash do it for you? AS
>
>On Mar 23, 11:39 am, Jimboidaho <jimboid...@gmail.com> wrote:
>> As I am using more web services it seems that I am having to store more
>> user ids and passwords in my ini file. My ini file is buried in my app
>> files to there is no direct path from my web site but they are wide open if
>> my server was hacked. I have thought about encrypting the values but I
>> would still need a key to decrypt and the key could be found in my code.
>> So back to my question, how do you guys do this?
>>
>> Thanks.
>
>--
>This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.
>
>For information or project assistance please visit :
>http://www.360psg.com
>
>You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
>To post to this group, send email to Professi...@googlegroups.com
>To unsubscribe from this group, send email to Professional-P...@googlegroups.com