removed the try/catch block in the constructor and changed the encryption algorithm to SHA-512