From 1aee55524ae3bfb6c14975be8af354d3d1b3e266 Mon Sep 17 00:00:00 2001 From: Pramit Sharma <97472770+MatricalDefunkt@users.noreply.github.com> Date: Tue, 9 Jan 2024 01:29:15 +0530 Subject: [PATCH] Update hash-a-password.md (#8048) Fixed a possible typo and improved grammar and conciseness throughout --- docs/guides/util/hash-a-password.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/util/hash-a-password.md b/docs/guides/util/hash-a-password.md index 61a59aeaf6..5d7ed0fded 100644 --- a/docs/guides/util/hash-a-password.md +++ b/docs/guides/util/hash-a-password.md @@ -13,7 +13,7 @@ const hash = await Bun.password.hash(password); --- -By default this uses the [Argon2id](https://en.wikipedia.org/wiki/Argon2) algorithm. Pass a second argument to `Bun.hash.password()` to use a different algorithm or configure the hashing parameters. +By default, this uses the [Argon2id](https://en.wikipedia.org/wiki/Argon2) algorithm. Pass a second argument to `Bun.password.hash()` to use a different algorithm or configure the hashing parameters. ```ts const password = "super-secure-pa$$word"; @@ -39,7 +39,7 @@ const bcryptHash = await Bun.password.hash(password, { --- -To verify a password, use `Bun.password.verify()`. The algorithm and its parameters are stored in the hash itself, so there's no need to re-specify any configuration. +Use `Bun.password.verify()` to verify a password. The algorithm and its parameters are stored in the hash itself, so re-specifying configuration is unnecessary. ```ts const password = "super-secure-pa$$word";