encryption madness
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59832
interpreted = N
texte = I'm trying to figure out how the encryption/decryption works but I'm getting crazy ...I made a small template that encrypts and urls a value, then it uses a link to pass it to itself, decrypt and encrypt it again. Finally it checks if the source value and the final value are the same ... and so on.I can make between 3 and 15 turns, then it fails.Here's the code. I don't know what I'm doing wrong ...Thierry
|
[if "[source]"="[raw][source][/raw]"][then]source = [text show=t]source=nouser[/text] final = [text show=t]final=nouser[/text] count = [math show=t]count=1[/math] encrypt source = [text show=t]encr=[url][encrypt seed=1664][source][/encrypt][/url][/text] (value for link) [/then][else]source = [text show=t]source=[source][/text] final = [final] count = [math show=t]count=[count]+1[/math] decrypt previous = [text show=t]decr=[decrypt seed=1664][unurl][encr][/unurl][/decrypt][/text] encrypt source = [text show=t]encr=[url][encrypt seed=1664][decr][/encrypt][/url][/text] (value for link) [/else][/if]newfinal = [text show=t]newfinal=[decrypt seed=1664][unurl][encr][/unurl][/decrypt][/text]
[if ("[source]"="[final]") & ("[source]"!"")][then]ok - next[/then][else]failed[/else][/if] |
-------------------------------------------------------------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:
I'm trying to figure out how the encryption/decryption works but I'm getting crazy ...I made a small template that encrypts and urls a value, then it uses a link to pass it to itself, decrypt and encrypt it again. Finally it checks if the source value and the final value are the same ... and so on.I can make between 3 and 15 turns, then it fails.Here's the code. I don't know what I'm doing wrong ...Thierry |
[if "[source]"="[raw][source][/raw]"][then]source = [text show=t]source=nouser[/text] final = [text show=t]final=nouser[/text] count = [math show=t]count=1[/math] encrypt source = [text show=t]encr=[url][encrypt seed=1664][source][/encrypt][/url][/text] (value for link) [/then][else]source = [text show=t]source=[source][/text] final = [final] count = [math show=t]count=[count]+1[/math] decrypt previous = [text show=t]decr=[decrypt seed=1664][unurl][encr][/unurl][/decrypt][/text] encrypt source = [text show=t]encr=[url][encrypt seed=1664][decr][/encrypt][/url][/text] (value for link) [/else][/if]newfinal = [text show=t]newfinal=[decrypt seed=1664][unurl][encr][/unurl][/decrypt][/text]
[if ("[source]"="[final]") & ("[source]"!"")][then]ok - [thisurl]?source=[source]&final=[newfinal]&encr=[encr]&count=[count]">next[/then][else]failed[/else][/if] |
-------------------------------------------------------------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/
Thierry Almy
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:
Re:WebCatalog 3 for Macintosh (1998)
WebCatalog and WebMerchant reviewed by InfoWorld (1997)
Replace Statement (1997)
SET (1998)
Size Limitation through a POST via SSL? (2005)
syntax question, not in online refernce (1997)
[random] only for 1-100??? (1997)
GuestBook example (1997)
Help!!!! (1997)
passing search criteria (1997)
Heads up, cookies *may* be outlawed in Europe (2001)
More on the email templates (1997)
SKU lookup (1997)
SandBox and ImageMagick (2003)
WebCat2 beta 11 - new prefs ... (1997)
[WebDNA] Help with iTools 9/WebDNA setup MacTel (2009)
Thanks ! (1997)
Nested vs conditional (1997)
More on the email templates (1997)
[Capitalize] (1998)