Possibility to use different Hash-Algorithms
Extracted calcHash from calculatePassword
Don't save nonces, instead generate them and save a timestamp inside the nonce.