> > ************ Output: ************> > Setting encrypted accountnum to 8%1E%B8D%88Rq%8F%F7%12%C6n%08q%AF%8F> The decrypted value is 300020001000...> Encrypted accountnum header is 8%1E%B8D%88Rq%8F%F7%12%C6n%08q%AF%8F> Decrypted accountnum header is 300020001000> > [!]************ WebCat code: ************ [/!]> [!]This code has a 16-digit input string and does not work properly.[/!]> > [text]encryptednum=[url][encrypt> seed=TestTest]4000300020001000[/encrypt][/url][/text]> Setting encrypted accountnum to [encryptednum]
> The decrypted value is [unurl][decrypt> seed=TestTest][encryptednum][/decrypt][/unurl]...
> [setheader cart=[cart]]accountnum=[url][encryptednum][/url][/setheader]> Encrypted accountnum header is [accountnum]
> Decrypted accountnum header is [decrypt> seed=TestTest][unurl][accountnum][/unurl][/decrypt]
> > ************ Output: ************> > Setting encrypted accountnum to> %11%D7%C0%84_%F3%03wrG%DF%8En%EFy%5D%AF%85h%28%7F%DEA%A6> The decrypted value is 4000300020001000...> Encrypted accountnum header is> %11%D7%C0%84_%F3%03wrG%DF%8En%EFy%5D%AF%85h%28%7F> Decrypted accountnum header is 40003000200010> > The decrypted header above is missing the last 2 digits.> > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list > > ************ Output: ************> > Setting encrypted accountnum to 8%1E%B8D%88Rq%8F%F7%12%C6n%08q%AF%8F> The decrypted value is 300020001000...> Encrypted accountnum header is 8%1E%B8D%88Rq%8F%F7%12%C6n%08q%AF%8F> Decrypted accountnum header is 300020001000> > [!]************ WebCat code: ************ [/!]> [!]This code has a 16-digit input string and does not work properly.[/!]> > [text]encryptednum=[url][encrypt> seed=TestTest]4000300020001000[/encrypt][/url][/text]> Setting encrypted accountnum to [encryptednum] > > ************ Output: ************> > Setting encrypted accountnum to> %11%D7%C0%84_%F3%03wrG%DF%8En%EFy%5D%AF%85h%28%7F%DEA%A6> The decrypted value is 4000300020001000...> Encrypted accountnum header is> %11%D7%C0%84_%F3%03wrG%DF%8En%EFy%5D%AF%85h%28%7F> Decrypted accountnum header is 40003000200010> > The decrypted header above is missing the last 2 digits.> > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list DOWNLOAD WEBDNA NOW! 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...
[url] context twice to convert the encrypted data to a hex-only> value (presumably safer for headers & DB data). I also use the [url] context> inside the SETHEADER context because it seems to automatically unURL data.> This way I (hopefully) ensure that the data stored in the header field is> double-URLed.> > Thanks in advance for any help / suggestions / workarounds.> > Pete> > The test code and output is below:> > [!]************ WebCat code: ************ [/!]> [!]This code has a 12-digit input string and works properly.[/!]> > [text]encryptednum=[url][encrypt> seed=TestTest]300020001000[/encrypt][/url][/text]> Setting encrypted accountnum to [encryptednum]
> The decrypted value is [unurl][decrypt> seed=TestTest][encryptednum][/decrypt][/unurl]...
> [setheader cart=[cart]]accountnum=[url][encryptednum][/url][/setheader]> Encrypted accountnum header is [accountnum]
> Decrypted accountnum header is [decrypt> seed=TestTest][unurl][accountnum][/unurl][/decrypt]
> The decrypted value is [unurl][decrypt> seed=TestTest][encryptednum][/decrypt][/unurl]...
> [setheader cart=[cart]]accountnum=[url][encryptednum][/url][/setheader]> Encrypted accountnum header is [accountnum]
> Decrypted accountnum header is [decrypt> seed=TestTest][unurl][accountnum][/unurl][/decrypt]
Top Articles:
Talk List
Related Readings:
Re:2nd WebCatalog2 Feature Request (1996)
Pirated WebCat? NOT... (2003)
Date search - yes or no (1997)
Post arguments problem mac? (1997)
WebCat2 - [format thousands] (1997)
Latest beta slow on [order] and [purchase] (1997)
AIM & SIM Issue (2001)
# of real domains on 1 web server (1997)
Copyright that puppy (1998)
Serial Number Question (1997)
a search based on ^(contains) (1998)
Tip O' the Week (1996)
Multiple CPUs? (2000)
SSL for Store Builder Sites? (2003)
[OT] Theiving B*****ds (2004)
Mac 2.1b2 speed (1997)
RE: [taxRate] [TaxTotal] ? (1997)
Calendar using WebCatalog? (1997)
Sku numbers (1997)
help with writefile (1998)