Yes, but why bother doing all this work when htmlEditFormat() does all this for you?
----- Original Message ----- From: Matt Robertson <[EMAIL PROTECTED]> Date: Thursday, April 18, 2002 4:46 pm Subject: Re: RE: Encrypting Numeric ID's > You'd have to decode it and decrypt it on the next page before you > use it for anything. I don't understand what you mean by it not > working. > those things are pretty big, tho'. One thing you could do is > > <CFSET base64encrypted = ToBase64(encrypt(string, key))> > <CFSET encrypted = URLEncodedFormat(base64encrypted)> > > encrypting "12345" using the key "blah" generates > > JS4+JCwrPFAgCg== > > and > > JS4%2BJCwrPFAgCg%3D%3D > > which are less unwieldy than the straight urlencoded/encrypted > version pf > > %25%2E%3E%24%2C%2B%3CP%20%0A > > Plain Base64 + encryption should also be db safe? > > --------------------------------------- > Matt Robertson [EMAIL PROTECTED] > MSB Designs, Inc., www.mysecretbase.com > --------------------------------------- > > > ---------- Original Message ---------------------------------- > from: [EMAIL PROTECTED] > Reply-To: [EMAIL PROTECTED] > date: Thu, 18 Apr 2002 16:32:28 -0600 > > Actually, I just realized that URLEncodedFormat won't work, as a > quote > will be url escaped, and when you submit the form, it won't change > back > to a quote. > > ----- Original Message ----- > From: Jason Dowdell <[EMAIL PROTECTED]> > Date: Thursday, April 18, 2002 4:38 pm > Subject: RE: Encrypting Numeric ID's > > > I tried all of those solutions except the htmleditformat. > > Will the htmleditformat remove double quotes? > > > > ~jason > > > > -----Original Message----- > > From: Matt Robertson [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 18, 2002 6:07 PM > > To: CF-Talk > > Subject: Re: Encrypting Numeric ID's > > > > > > How about this: > > > > <CFSET encrypted = URLEncodedFormat(encrypt(string, key))> > > > > --------------------------------------- > > Matt Robertson [EMAIL PROTECTED] > > MSB Designs, Inc., www.mysecretbase.com > > --------------------------------------- > > > > > > ---------- Original Message ---------------------------------- > > from: "Jason Dowdell" <[EMAIL PROTECTED]> > > Reply-To: [EMAIL PROTECTED] > > date: Thu, 18 Apr 2002 18:14:51 -0400 > > > > Hi All, > > > > I'm encrypting an integer using the encrypt() function > > in CF. Sometimes it puts a double quote character in > > the encrypted string. So when I put that value in a hidden > > form field it looks something like this... > > > > value="jd0"9em" > > > > Of course you can see what happens. The browser sees the > > second double quote and disregards the rest of the value of > > the variable. I don't have the option of storing a hashed > > value as the primary key because the db is already designed. > > > > Does anyone have any workarounds for this? > > > > Thanks, > > Jason > > --------------------------------- > > Jason Dowdell > > Engine Studio Inc. > > www.EngineStudio.com > > [EMAIL PROTECTED] > > --------------------------------- > > > > > > > > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists