ActionScript (AS3) library for processing binary data. This library contains MD5, SHA-1, SHA-2 ( SHA-224 и SHA-256 ), Base64, CRC32 algorithms, JSON encoder & decoder as well as PNG and JPEG encoders.
The new version can work in asynchronous mode. Worker is used, if the version of the player is higher than 11.4.
import by.blooddy.crypto.MD5;
import by.blooddy.crypto.events.ProcessEvent;
var md5:MD5 = new MD5();
md5.hash( 'text' );
md5.addEventListener( ProcessEvent.COMPLETE, function(event:ProcessEvent):void {
trace( event.data ); // async result
} );
md5.addEventListener( ProcessEvent.ERROR, function(event:ProcessEvent):void {
trace( event.data ); // async error
} );