You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e2e170f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: stubbornjava-webapp/ui/src/posts/hashing-passwords-in-java-with-bcrypt.hbs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ BCrypt is a one way salted hash function based on the [Blowfish cipher](https://
6
6
* **One way hashing** - BCrypt is a one way hash function to obfuscate the password such that it is not stored in plain text.
7
7
* **Salted hashing** - Generating random bytes (the salt) and combining it with the password before hashing creates unique hashes across each users password. If two users have the same password they will not have the same password hash. This is to prevent [rainbow table](https://en.wikipedia.org/wiki/Rainbow_table) attacks which can reverse hashed passwords using common hashing functions that do not utilize a salt.
8
8
* **Logarithmic iterations** - The hashing function is executed many times sequentially which can be increased exponentially known as [key stretching](https://en.wikipedia.org/wiki/Key_stretching). This is to make the function CPU intensive which makes it more secure against brute force attacks.
9
-
* **Updatable iterations** - As CPUs become faster so do brute force attacks. Since BCrypt stores the number of iterations as part of the hash its possible to verify a password and then increase its strength by generating a new hash with a higher number of iterations.
9
+
* **Updatable iterations** - As CPUs become faster so do brute force attacks. Since BCrypt stores the number of iterations as part of the hash it's possible to verify a password and then increase its strength by generating a new hash with a higher number of iterations.
10
10
11
11
## jBCrypt Example Wrapper.
12
12
We will be wrapping the standard `jBCrypt` with our own methods to allow auto updating the iterations on the fly.
0 commit comments