I'm adapting a little PHP program I wrote for an Amazon associates store front. Amazon now requires you to pass a "public key" (20 characters) and a "secret key" (40 characters) that is encoded prior to passing it to them. Each user of the parent program has to register with Amazon to get both their public and secret key already so the users of my program are not inconvenienced by that. But the parent program encodes the keys in the database. Mine does not (in fact, it doesn't even use the database ... it just fetches X number of items from the Amazon database and links to the storefront.)
My little program simply has a variable for each key, and the user edits the file to include the plain text versions of their keys. This brings up a question, how secure is a PHP file from browsers? Surfing to the program simply runs it and you get the program's output. But is having the key in plain text in the program a security risk of some kind?
My little program simply has a variable for each key, and the user edits the file to include the plain text versions of their keys. This brings up a question, how secure is a PHP file from browsers? Surfing to the program simply runs it and you get the program's output. But is having the key in plain text in the program a security risk of some kind?
Comment