Skip to content


Subversion checkout URL

You can clone with
Download ZIP
AS3 hash algorithms implemented using HaXe
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
haXsh faster MD5 for as3


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.

Something went wrong with that request. Please try again.