Replacing hardcode value of sha1 for the Registering Password Encoder