Login with password encrypted

I would like to create a function that retrieves a user’s username and password and logs in.

I tried in this way

AuthDetails authDetails = AuthDetails.of(u.getUsername(),u.getPassword());
loginScreenSupport.authenticate(authDetails,this);

but the password is incorrect because it is encrypted.

what can I do ?

The user password is not stored in the database.
The hash of the password is stored and when logging in, the entered password is hashed and compared with the hash in the database.

1 Like