01-21-2012 01:25 AM
Hello every one,
Problem regarding SHA512 encryption of the data in as3.0,But
Unfortunately i found with SHA256 in as3Crypto, Is there any library or class file for SHA512 convertion, Its very Urgent for me.
Thank you in advance.
Solved! Go to Solution.
01-21-2012 03:35 AM - edited 01-21-2012 03:36 AM
I personally never used it, but it looks like the flame library offers what you need. No idea about the performance though.
Hash algorithms: MD5, RIPEMD-160, SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512) Keyed-hash algorithms: HMAC Symmetric algorithms: AES, Rijndael, RC4 Asymmetric algorithms: RSA, Elliptic Curve Diffie-Hellman (ECDH)
Another idea would be to build a SHA-512 native extension (ANE).
Just out of curiosity, what requires you to use SHA-512?
01-21-2012 11:52 AM
01-21-2012 01:44 PM
I think both flame and as3crypto will be limited by Adobe AIR itself. I am having a lot of performance issues as well with my unrar as3 port, so I will go for an ANE as well. Heavy as3 algorithms are also a bitch to keep the UI updated properly.
I have no idea about the performance boost yet though, but I will definitely compare them and post back on it.
01-23-2012 05:17 PM
I have done a bit of testing so i can share the first (very promising) results about AS3 vs ANE sha hash:
I have coded an ANE for sha256, and ran a few test to compare ANE speed with as3crypto sha256 for different sizes of data, precision is very rough but significant enough.
for 85639 bytes (85 kB):
as3crypto: 2 seconds
ANE: 0 second
1949699 bytes (1.9 MB):
as3crypto: 44 seconds
ANE: 1 second
3084139 bytes (2.9 MB):
as3crypto: 70 seconds
ANE: 1 second
38441769 bytes (36.7 MB):
as3crypto: 883 seconds
ANE: 5 seconds
The results are clear
if your app is not performance sensible, for a few kB to hash, you could still go with as3crypto
but if you need high performance, or if your data is big, then ANE is the only choice: with 37 MB, ANE is 170 times faster than as3crypto.
01-24-2012 04:17 AM
01-25-2012 12:28 AM
Thank you for your response,
I have searched for that, But in the redirected page there are no files to download, Its just specifying that it consists SHA512 file.
So, can you please say me from where can I get the library.
Thank you in Advance.
01-25-2012 04:26 PM
01-26-2012 12:05 AM
Thankyou verymuch Smurgrik, Really great help, Now I found the SWC.
Actually in as3crypto we can encrypt using "sha256.hash(Data to encrypt)". But I am in bit confusing with flame encryption, is there any sample, which explains how to use sha512 encryption.
I have read the docs which were with flame, but I could not understand from that details. By the by I am new to this encryption so please don't mind in helping me.
Thank you in advance