Currently, I am using java.util.Base64 for encoding and decoding password in java for the USER role.
As I am using java.util.Base64 for user role my requirement is to use other password encoding and decoding for ADMIN role so that by using the database if anyone replaces the USER password to ADMIN password and try to log in for ADMIN they should not get ADMIN access.
So is there any other way in java which supports encoding and decoding string in Java?