Refuctoring: Creating new class Hash wich has two  sattic methods:
genHash and genSalt