Today I found this interesting library - AS3 Crypto Framework 1.3. Many algorithms used for cryptography are implemented in this class: TLS 1.0 support (partial), X.509 Certificate parsing and validation, RSA (encrypt/decrypt, sign/verify), AES, DES, 3DES, BlowFish, XTEA, RC4, ECB, CBC, CFB, CFB8, OFB, CTR, MD2, MD5, SHA-1, SHA-224, SHA-256, PKCS#5, PKCS#1 type 1 and 2, HMAC, Random, TLS-PRF, some ASN-1/DER parsing and more.
Demo for the class is found at http://crypto.hurlant.com/demo/, sources at http://crypto.hurlant.com/demo/srcview/, archive for download here (http://crypto.hurlant.com/demo/srcview/Crypto.zip) and the SWC can be downloaded from http://crypto.hurlant.com/demo/as3crypto.swc.
Tags: ActionScript, algorithms, cryptograpy, Security
This post was written by Andrei Ionescu
Views: 2702



















It would be nice to see some implementation source. I am new to Flex but need RSA encrytion to communicate with our PHP backend system.
How would I get a list of methods and properties for this library?
Paul, as specified in the article, the sources for the example can be viewed here. You can take a look into the com.hurlant.crypto.tests package to see how MD5 class is used.
Depending on the mode/kind of communication you may solve the problem without using As3Crypto because flash player knows about certificates and other things.
We will try to make an example as soon as possible.
Paul, Ive had real trouble getting PHP to talk to AS3Crypto - i just cant seem to get AS3crypto to verify my Digital Sig generated by PHP