Articles Tagged 'SHA1'

AS3Corelib: library for MD5, SHA1 and JPG / PNG Encoder

AS3corelib project is a library written in ActionScript 3, which contains a series of classes and utilities to expand the development with ActionScript 3. It includes support for MD5 and SHA 1, encoders for JPG and PNG, and JSON serialization for strings, numbers and dates APIs. Libreia This is very useful in the development of Flash applications and able to give it its best coupled with Adobe AIR!

Of the various packages present the most interesting are com.adobe.crypto and com.adobe.images. The first allows you to manage encodings MD5, SHA1, SHA224 and SHA256, so very simple: using the method hash() is passed the string and returns the source-coding! The package even allows images to get the JPG or PNG encoder from a simple bitmap Flash!

1
encode ( image : BitmapData ) : ByteArray public function encode (image: BitmapData ): ByteArray

The result ByteArray representing the JPG encoding that allows Flash, can be saved to disk by directly! To learn more you can follow this tutorial video on how to save a PNG image - from a video object - on disc by as3corelib .

More ...


Stop SOPA