Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Casey
On Mar 28, 2008, at 7:15 PM, "Jack Sasportas" <[EMAIL PROTECTED] > wrote: -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 10:02 PM To: Joey Cc: PHP Subject: RE: [PHP] munge / obfuscate ? Hi Joey, Please keep response

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Stut
On 29 Mar 2008, at 02:15, Jack Sasportas wrote: I understand what is happening here, however I really want something simple like: $link ="http://www.whataver.com/whateverpath/";; $image = "123456"; new_image = munge($image); new_link = $link . $new_image; or maybe new_link = munge($link . $

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Jack Sasportas
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2008 10:02 PM > To: Joey > Cc: PHP > Subject: RE: [PHP] munge / obfuscate ? > > Hi Joey, > > Please keep responses on the list so others can also benef

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread tedd
At 9:27 PM -0400 3/27/08, Robert Cummings wrote: $sekret = 'the brown cow stomped on the wittle bug'; :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Robert Cummings
On Fri, 2008-03-28 at 10:37 -0400, Bastien Koert wrote: > [snip]> Save yourself the database trip and just stick the id AND the > hash in > > the URL and validate upon request. > > > > Cheers, > > Rob. > [/snip] > > The only reason I suggest a database look up is that in my application > there

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Daniel Brown
On Thu, Mar 27, 2008 at 9:27 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > $sekret = 'the brown cow stomped on the wittle bug'; > > $id = isset( $_GET['id'] ) ? (int)$_GET['id'] : 0; > $key = isset( $_GET['key'] ) ? (string)$_GET['key'] : ''; > > if( $key == sha1( $id.':'.$s

Re: [PHP] munge / obfuscate ?

2008-03-27 Thread Robert Cummings
; On Thu, 2008-03-27 at 21:46 -0400, Joey wrote: > >>> -Original Message- > >>> From: Robert Cummings [mailto:[EMAIL PROTECTED] > >>> Sent: Thursday, March 27, 2008 9:28 PM > >>> To: Joey > >>> Cc: PHP > >>> Subject: Re: [PH

Re: [PHP] munge / obfuscate ?

2008-03-27 Thread robert
. Comments below... On Thu, 2008-03-27 at 21:46 -0400, Joey wrote: -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 9:28 PM To: Joey Cc: PHP Subject: Re: [PHP] munge / obfuscate ? On Thu, 2008-03-27 at 21:10 -0400, Joey wrote: Hi All, I

Re: [PHP] munge / obfuscate ?

2008-03-27 Thread Robert Cummings
On Thu, 2008-03-27 at 22:36 -0400, Bastien Koert wrote: > On Thu, Mar 27, 2008 at 9:10 PM, Joey <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > > > > > I have written an app to allow a person to go online and see a picture we > > take of them. When we link to the picture I don't want it to be o

Re: [PHP] munge / obfuscate ?

2008-03-27 Thread Bastien Koert
On Thu, Mar 27, 2008 at 9:10 PM, Joey <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I have written an app to allow a person to go online and see a picture we > take of them. When we link to the picture I don't want it to be obvious > that the URL is > > Domain.Com/Pix/123.jpg because the next pers

RE: [PHP] munge / obfuscate ?

2008-03-27 Thread Robert Cummings
008 9:28 PM > > To: Joey > > Cc: PHP > > Subject: Re: [PHP] munge / obfuscate ? > > > > > > On Thu, 2008-03-27 at 21:10 -0400, Joey wrote: > > > Hi All, > > > > > > > > > > > > I have written an app to allow a person t

Re: [PHP] munge / obfuscate ?

2008-03-27 Thread Robert Cummings
On Thu, 2008-03-27 at 21:10 -0400, Joey wrote: > Hi All, > > > > I have written an app to allow a person to go online and see a picture we > take of them. When we link to the picture I don't want it to be obvious > that the URL is > > Domain.Com/Pix/123.jpg because the next person we take a