Mohsin26 / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

Implement SHA-256, SHA-224 #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
SHA-1 and MD5 have each been cracked and are known to be weak hashing
algorithms.  With this in mind, and knowing that these algorithms will be
phased out by the NIST, we should implement the more secure SHA-256,
SHA-384, and SHA-512 algorithms in the crypto package.

The specification for the standards can be found here:
http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf

Original issue reported on code.google.com by darron.schall on 23 Jan 2007 at 11:43

GoogleCodeExporter commented 9 years ago
I implemented SHA256 for a project and wanted to post source here for possible
inclusion. It follows the architecture of the corelib SHA1 and includes unit 
tests. I
also created SHA224 (per the 2004 addition to the standard) along with unit 
tests.

Original comment by benstu...@gmail.com on 18 Feb 2007 at 9:45

Attachments:

GoogleCodeExporter commented 9 years ago
I implemented SHA256 for a project and wanted to post source here for possible
inclusion. It follows the architecture of the corelib SHA1 and includes unit 
tests. I
also created SHA224 (per the 2004 addition to the standard) along with unit 
tests.

Original comment by benstu...@gmail.com on 18 Feb 2007 at 9:50

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Ben.  I've used your implementation of SHA-256/SHA-224 because it's 
based on
my SHA-1 that was already in the crypto package and it fits in well with what we
already have.

In the process, I also wanted to acknowledge Darrell Loverin from Adobe.  He had
contributed a working SHA-256 hash that passed all of the unit tests.

Original comment by darron.schall on 19 Feb 2007 at 12:06