[Nottingham] PHP hidden variable

Brian Pickford Brian at brianpickford.co.uk
Sat Jun 28 08:53:52 BST 2008


> I'm doing some coding using PHP, it's a simple form to send an e-mail 
> and I'm using reCaptcha to prevent abuse.
> Thing is, that needs a public and a private key to be included in the 
> php so it can access the API, the keys are only valid for that domain, 
> but I'd still rather not have them in plain text in my php file.
> 
> Is there a way to hide, encrypt or encode data like this in a php script?
md5 hash is a pretty easy way of encoding strings, It's not that secure, 
but it is another step. If your server is configured correctly, there 
should be no access to the plan text in the php script any how.

http://www.w3schools.com/php/func_string_md5.asp




More information about the Nottingham mailing list