[dev] Encrypting POST and GET variables /querystring

Jan Schneider jan at horde.org
Mon Mar 13 15:55:48 PST 2006


Zitat von ali mohammed <nefertitian at gmail.com>:

> Sorry if the question sounds dumb but what is the best way to encrypt a
> querystring that gets passed through GET or POST?
>
> For example, If I have a URL of the type:
>
> http:///www.dummy.com?objectid=123456
>
> I would like the objectid value which is 123456 to be encrypted whenever it
> is accessed. I tried initializing Horde_Crypt but it gave me some odd errors
> ( I think I initialized it something like $crpyto =
> &Horde_Crypt::singleton('smime') or something). .

You want to use Horde_Cipher probably, not Horde_Crypt. Or even  
Secret, which is a wrapper around Horde_Cipher.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list