• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Implementing SHA-1 hash for passwords in a database

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?
 
Back
Top