---
title: "Comment by Amal Shaji on \"Introducing StaticShield🛡: Password protect a website in less than 2 mins.\" | Hashnode"
description: "Regarding the security, const bcryptHashedPassword = bcrypt.hashSync(reversedSHAHash, 5 ); Here 5 is the salt round or cost factor . The total number of rounds/"
url: "https://hashnode.com/posts/staticshield/60dc16d37c7df7644acde86c/comment/60dc48f295305075b9337702"
---

[Discussion](https://hashnode.com/posts/staticshield/60dc16d37c7df7644acde86c)

Comment [Introducing StaticShield🛡: Password protect a website in less than 2 mins.](https://hashnode.com/posts/staticshield/60dc16d37c7df7644acde86c)

[Amal Shaji](https://hashnode.com/@amal)

[Jun 30, 2021](https://hashnode.com/posts/staticshield/60dc16d37c7df7644acde86c/comment/60dc48f295305075b9337702)

Regarding the security,

```
const bcryptHashedPassword = bcrypt.hashSync(reversedSHAHash, 5);
```

Here `5` is the `salt round` or `cost factor`. The total number of rounds/times hashed = 2 ^ (salt rounds). So your implementation hashes the password 32 times. Nowadays, bcrypt libraries use the cost factor of `10` by default, i.e., 1024 rounds.

[Lalit](https://hashnode.com/@lalit2005)

[Jun 30, 2021](https://hashnode.com/posts/staticshield/60dc16d37c7df7644acde86c/comment/60dc48f295305075b9337702#reply-60dc4b770970dd75de76da64)

Oh I did not know about that at all!

Thanks a lot [Amal Shaji](https://hashnode.com/@amal)
