A Beamter can only be fired when sentenced to more than one year jail.
Cryptographically secure hashes are Hard to get right, and harder to evaluate with any amount of certainty. History is littered with the dessicated failed corpses of roll-your-own crypto.