I have a external embedded derby database. I have a table called Account with fields. I am trying to take a string from a text field, and hash it using sha-256 or bcrypt and then add it to the password(CHAR 128) field in my database. I then wan't to verify it when people log in. How would i do this? I know sql and jdbc but not the password stuff.
So how can I go about getting a string from a textfield and hash it and add it to the database I have and verifying the password is right when a user tries to log in in java?