Skip to content

Commit

Permalink
Update hashing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Nov 9, 2024
1 parent ae6e23a commit d879f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/hashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ await Bun.password.hash("hello".repeat(100), {
});
```

So instead of sending bcrypt a 500-byte password silently truncated to 72 bytes, Bun will hash the password using SHA-512 first, and return the result in Modular Crypt Format. This is a more secure default behavior.
So instead of sending bcrypt a 500-byte password silently truncated to 72 bytes, Bun will hash the password using SHA-512 and send the hashed password to bcrypt (only if it exceeds 72 bytes). This is a more secure default behavior.

### argon2 - PHC format

Expand Down

0 comments on commit d879f43

Please sign in to comment.