Changed the rsa keygen to use SecureRandom instead of the password hash.