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: 15356










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
Sigh. I have now spent 5 hours on this library. And I am quite good with as3/flex. I have tried reading up on wikipedia the different stuff etc, but I still don’t understand how to use the RSA. The Crypto.as (i.e the example class) lacks an implementation of RSA, and the functions in the RSA-class doesn ot have names that makes it any clearer. What are the different parameters: N, E, D, P, Q,DP, DQ, C? No documentation anywhere, no example anywhere?
I would love to have something like:
but i cant find anything like it anywhere?
Would be very grateful for any advice or suggestions on how to get started
Is it possible to extract the digest from a credential file sing this library?
how to reverse a string in flex 3
i need this to do encryption
msg={this is flex}
i would like to have the string in reverse i.e
xelf si siht
To reverse a string do this:
Is that simple!
I would be very grateful if u suggest me how to write a program on encryption and decryption in flex
I would be grateful if u can write a program on encrypt nd decrypting the text in flexbuilder3
Hello DearAndrei Ionescu. You post very useful URL.
Thanks a lot.
By the way, I just came across a good article on Cryptography. Click this link
in actionscript can we do AES ENCRYPTION WITH PKCS7 padding
if yes.
please help me out