The name is
Mike Myat Min Han aka 'mmhan'.

I am a developer, mostly do development on Javascript, PHP and CakePHP alongside some development work on C, C++, Obj-C, C# and AS. I also have a thing for Python.

I post here all sorts of crap that I find worthy of sharing: Quotes, Jokes and Notes.

You can check out my blog and follow me on twitter.


Text

May 24, 2010
@ 4:45 pm
Permalink

MD5 Hash in AS3

I was looking for a way to MD5 hash a string in AS3 and most of the results that turned up was using some obscure classes from some unknown sources, at least for my keyword combination anyway.

Only after more digging I’ve found that there’s a stable library called as3corelib in Google code. With two following lines of code, I can now hash a string.

import com.adobe.crypto.MD5;
var hashString:String = MD5.hash('my secret');