Re: [WebDNA] Encode cookies ONLY via "method=Base64"
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109303
interpreted = N
texte = BrianThe result always comes out blank if I use a seed or just =[ENCRYPT]/[DECRYPT], it does work OK if I use method=3DBase64On 14/07/2012, at 3:09 AM, Brian Fries wrote:> Stuart ->=20> You can store encrypted cookie values. You need to URL twice after =encrypting:>=20> [setcookie name=3DCOOKIENAME&value=3D[url][url][encrypt =seed=3DSEEDVALUE]COOKIEVALUE[/encrypt][/url][/url]]>=20> and UNURL once before decrypting:>=20> [decrypt seed=3DSEEDVALUE][unurl][getcookie =name=3DCOOKIENAME][/unurl][/decrypt]>=20> The end result should match the COOKIEVALUE you saved.>=20> - Brian>=20>=20> On Jul 13, 2012, at 12:19 AM, Stuart Tremain
=wrote:>=20>> Almost 4 years on and the only encryption/decryption that you can do =with cookies is method=3DBase64, and I have just spent 2 days proving it =:(>>=20>> Thinking of opening a liquor store ..... problem is it may be like =Dracula in charge of the Blood Bank>>=20>>=20>>=20>>=20>> On 28/10/2008, at 1:42 PM, Stuart Tremain wrote:>>=20>>> On 28/10/2008, at 1:11 PM, Kenneth Grome wrote:>>>=20>>>> Hi Matthew,>>>>=20>>>> I tested WebDNA and learned that it won't produce [math]>>>> results more than 15 chars long before it resorts to>>>> scientific notation, and therefore it appears your>>>> suggestion is not possible ... :(>>>>=20>>>> I also did a bunch of reading online about prime numbers>>>> (very interesting) but none of it matters for use in WebDNA>>>> if the [math] context cannot produce numbers more than 15>>>> chars long.>>>>=20>>>> It sure would be nice if encrypt / decrypt worked with>>>> cookies, and I'm not sure why it doesn't when it works with>>>> db's. Any theories about this?>>>>=20>>>> Sincerely,>>>> Ken Grome>>=20>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
BrianThe result always comes out blank if I use a seed or just =[encrypt]/[DECRYPT], it does work OK if I use method=3DBase64On 14/07/2012, at 3:09 AM, Brian Fries wrote:> Stuart ->=20> You can store encrypted cookie values. You need to URL twice after =encrypting:>=20> [setcookie name=3DCOOKIENAME&value=3D[url][url][encrypt =seed=3DSEEDVALUE]COOKIEVALUE[/encrypt][/url][/url]]>=20> and UNURL once before decrypting:>=20> [decrypt seed=3DSEEDVALUE][unurl][getcookie =name=3DCOOKIENAME][/unurl][/decrypt]>=20> The end result should match the COOKIEVALUE you saved.>=20> - Brian>=20>=20> On Jul 13, 2012, at 12:19 AM, Stuart Tremain =wrote:>=20>> Almost 4 years on and the only encryption/decryption that you can do =with cookies is method=3DBase64, and I have just spent 2 days proving it =:(>>=20>> Thinking of opening a liquor store ..... problem is it may be like =Dracula in charge of the Blood Bank>>=20>>=20>>=20>>=20>> On 28/10/2008, at 1:42 PM, Stuart Tremain wrote:>>=20>>> On 28/10/2008, at 1:11 PM, Kenneth Grome wrote:>>>=20>>>> Hi Matthew,>>>>=20>>>> I tested WebDNA and learned that it won't produce [math]>>>> results more than 15 chars long before it resorts to>>>> scientific notation, and therefore it appears your>>>> suggestion is not possible ... :(>>>>=20>>>> I also did a bunch of reading online about prime numbers>>>> (very interesting) but none of it matters for use in WebDNA>>>> if the [math] context cannot produce numbers more than 15>>>> chars long.>>>>=20>>>> It sure would be nice if encrypt / decrypt worked with>>>> cookies, and I'm not sure why it doesn't when it works with>>>> db's. Any theories about this?>>>>=20>>>> Sincerely,>>>> Ken Grome>>=20>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Site Builder & IE Mac (2004)
referrer variable (1997)
Multiple catalog databases and showcart (1997)
Erotic Sites (1997)
WebCatb15 Mac CGI -- [purchase] (1997)
Emailer setup (1997)
Question about links (1999)
Targeting [redirect] to a frame? (1998)
My X-Mas Wish (1999)
Country & Ship-to address & other fields ? (1997)
Quit revisited (1997)
Multiple Newcarts (1996)
WebCatalog for Postcards ? (1997)
More on the email templates (1997)
Annoying character on writefile... (2004)
really wierd browser truncating (1997)
SiteBuilder (2005)
users.db (1999)
File upload (2002)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)