AS3 hash algorithms implemented using HaXe
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This was written as a drop-in replacement for the as3corelib MD5 function.

More accurately, it was written to be as fast as possible without using any of the flash DomainMemory APIs.

com.adobe.crypto.MD5 haXsh.MD5
134.71 ms 4.884 ms

This was over 1000 runs on a 100kb ByteArray.

The code is inherited from [haxe.MD5][] which was adapted to work off ByteArrays. The inner loops have been optimized to about twice as fast as the original. Read COPYING file about the HaXe Copyright notices.

The functions are faster, but they run into the alchemy licensing constraints (Adobe wants 9% revenue if you use 3D and DomainMemory together).

But if you need Stage3D and a fast MD5, this is your best bet.