views:

121

answers:

1

Hi,

I am developing an application in flex in which I need to calculate checksum of different files. I would like to know if there is a direct method in actionscript to calculate that or do I have to go for any external libraries?

Thanks in advance :)

+1  A: 

as3corelib maintained by Mike Chambers/Adobe, contains everything you probably need in its crypto section including:

  • HMAC
  • MD5
  • MD5Stream
  • SHA1
  • SHA224
  • SHA256
  • WSSEUsernameTocken
Tegeril
Thanks Tegeril. Here I am assuming that there are two parts. First, get the contents of the file in one shot. Then calculate MD5 of it. So, for the second part the above answer is very much useful. But at the firt part, I am unable to get the contents of the file in one-shot.
Goje87