Implemented collision and preimage hash attacks for the SHA-1 hash algorithm.