Re: Using Encrypt/Decrypt

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 55123
interpreted = N
texte = >A question on the mechanics of encrypt/decrypt: > >No problem using a single instance of E/D, but my objective is to >pass an encrypted code from page to page: > >page1.tpl?c=[encrypt seed=1234][somecode][/encrypt] ....... > >decrypt the code on the destination page (this works)... >[decrypt seed=1234][code][/decrypt] >do a search with the decrypted code > >then re-encrypt it to go to the next page, and repeat the process >with each pass. > >It works once, but no repeat of the encryption process, with the >same seed or a different one, seems to work. Docs are a little >skimpy on what is actually going on. >This use does NOT save anything to disk, but passes the encrypted >value along each request, decrypts the code for use on the page in a >secure manner, then re=encrypts it to pass along. > >Anyone have any experience here? This doesn't have anything to do with the encrypt/decrypt code. It's not working because you're not using the [url] context to insure that the value will pass properly in the URL. If you will simply [url] the passed value you won't have any problem: page1.tpl?c=[url][encrypt seed=1234][somecode][/encrypt] [/url] -- Kenneth Grome ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Using Encrypt/Decrypt ( Kenneth Grome 2003)
  2. Re: Using Encrypt/Decrypt ( Larry Hewitt 2003)
  3. Re: Using Encrypt/Decrypt ( Kenneth Grome 2003)
  4. Re: Using Encrypt/Decrypt ( "Andrew Simpson" 2003)
  5. Using Encrypt/Decrypt ( Larry Hewitt 2003)
>A question on the mechanics of encrypt/decrypt: > >No problem using a single instance of E/D, but my objective is to >pass an encrypted code from page to page: > >page1.tpl?c=[encrypt seed=1234][somecode][/encrypt] ....... > >decrypt the code on the destination page (this works)... >[decrypt seed=1234][code][/decrypt] >do a search with the decrypted code > >then re-encrypt it to go to the next page, and repeat the process >with each pass. > >It works once, but no repeat of the encryption process, with the >same seed or a different one, seems to work. Docs are a little >skimpy on what is actually going on. >This use does NOT save anything to disk, but passes the encrypted >value along each request, decrypts the code for use on the page in a >secure manner, then re=encrypts it to pass along. > >Anyone have any experience here? This doesn't have anything to do with the encrypt/decrypt code. It's not working because you're not using the [url] context to insure that the value will pass properly in the URL. If you will simply [url] the passed value you won't have any problem: page1.tpl?c=[url][encrypt seed=1234][somecode][/encrypt] [/url] -- Kenneth Grome ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kenneth Grome

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:

WebDelivery downloads alias, not original ? (1997) Revisit: speed test (2002) Listserver problem (1997) Possible Bug in 2.0b15.acgi (1997) Bug? (1997) What are these prefs for? (1999) I'm Baaaaaaaaaack - Questions! (2000) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Questions To Answer (1997) Getting Emailer to send mail (1997) Extended [ConvertChars] (1997) [delete] problem (1997) Search in 2 or more catalogs (1997) webcat2b12 CGI -- Date comparisons (1997) Locking up with WebCatalog... (1997) Adding Header Values with [SetHeader] (1998) JS version of this (2007) More ways to search the docs (1998) Date sorting (1997) Webcat 2.0.1 date math bug -> Crash! (1997)