[Flashcoders] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Roman Blöth
Hello folks,


just wanted to tell you something and ask for something.

Something to tell:


ActionScript function escape escapes . and  , ASP.NET function
urlEncode does not escape . and escapes   as +.

So Strings escaped in ActionSript will NOT resemble strings urlEncoded
in ASP.NET!


I came across this while trying to make highscore- and user-management
for a small flash game where the swf movie has to communicate with ASP.NET.
ASP.NET does NOT offer ActionScripts escape-function, and ActionScript
does NOT offer ASP.NETs urlEncode-function. Keep this in mind
whereever your swf has too deal with ASP.NET! - Or else tell me the
truth, please!


Furthermore I am looking for a MD5-implementation for ActionScript, that
will work properly on special characters. You can give it a try
yourself, when entering a ß oder ä into any of those HTML-/web-based
MD5-generators. Depending on which one you use, you will get two
different result hashes. Needless to say that the usual
MD5-implementation used with actionscript (there oonly seems to be one
version out there) results in a different md5-hash than that used with
ASP.NET.
Again, please tell me, when you know I'm wrong here.


Best regards,
Roman Blöth.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Per Bolmstedt


Roman Blöth wrote:


ActionScript function escape escapes . and  , ASP.NET function
urlEncode does not escape . and escapes   as +.


.NET URL encodes as specified in RFC's 1738 and, for example, 1630, to emulate
the behaviour of web browsers.  The encoding of the space to a plus sign is
something of an anomaly.  The plus sign is just a safe version of a space in
a _query_string_, which is part of an URL.  The dot is a safe character and
doesn't need to be _URL_ encoded, so escape() does more than just URL encoding.
 (The Adobe AS dictionary is, as always, not shedding any light on the subject.)


yourself, when entering a ß oder ä into any of those HTML-/web-based
MD5-generators. Depending on which one you use, you will get two


MD5 works on bits, not such abstract notions as letters.  There are many ways
to turn an ä into bits, which is why your results differ.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com