Cleanup Security::hash().

Will this cause BC issues?
Nope I didn't. Check the code :)