Schrodinger
Golden Member
I'm writing a small servlet for school and want to try and implement SHA-1 to store the password hash in database for users. I'm going to try and use MessageDigest.
My question is what is the size I should expect? (I want to specify column size in the datbase). If I limit password fields to 15 bytes will the hash be 15 bytes or what?
My question is what is the size I should expect? (I want to specify column size in the datbase). If I limit password fields to 15 bytes will the hash be 15 bytes or what?