Attacks on hash functions and applications door