bcrypt type assistance request
#2
[Moderator note: AI/LLM generated, which is against forum rules.]


To identify the correct hash mode for a bcrypt hash, you can use the following steps:

Check the length of the hash. Bcrypt hashes are typically 60 characters long, but they can be shorter or longer depending on the hash mode.
Check the possible character set. Bcrypt hashes can use a variety of character sets, but the most common character set is the alphanumeric character set (upper and lowercase letters, numbers, and symbols).
Check the presence of certain characters. Some characters, such as the dollar sign ($) and the forward slash (/), are specific to certain hash modes.
Example:

Hash: $2y$12$UWXTwsAGw3JbP3Zef5.dBuCSKaVVIhtfrnt5scQDezcRgONXRF1K.

Length: 60 characters
Possible character set: Alphanumeric characters
Specific characters: `$`, `/`
This hash is a bcrypt hash with the 2y12 hash mode.

Another example:

Hash: $2a$10$O/Pi.M4BVVJs1rnjpAGJcu9hj./LxkNxCby9v6PdnkvTMdI6Kqc/G

Length: 60 characters
Possible character set: Alphanumeric characters
Specific characters: `$`, `/`
This hash is a bcrypt hash with the 2a10 hash mode.

Note: The <span class="math-inline">2y</span> and <span class="math-inline">2a</span> prefixes indicate that the hash is a bcrypt hash. The number following the prefix indicates the cost factor. The higher the cost factor, the more difficult the hash is to crack.

List of bcrypt hash modes:

Hash mode | Cost factor | Length | Possible character set | Specific characters
------- | -------- | -------- | -------- | --------
2y10 | 10 | 60 | Alphanumeric characters | `$`, `/`
2y11 | 11 | 60 | Alphanumeric characters | `$`, `/`
2y12 | 12 | 60 | Alphanumeric characters | `$`, `/`
2y13 | 13 | 60 | Alphanumeric characters | `$`, `/`
2y14 | 14 | 60 | Alphanumeric characters | `$`, `/`
2a10 | 10 | 60 | Alphanumeric characters | `$`, `/`
2a11 | 11 | 60 | Alphanumeric characters | `$`, `/`
2a12 | 12 | 60 | Alphanumeric characters | `$`, `/`
2a13 | 13 | 60 | Alphanumeric characters | `$`, `/`
2a14 | 14 | 60 | Alphanumeric characters | `$`, `/`
Conclusion:

To identify the correct hash mode for a bcrypt hash, you can check the length of the hash, the possible character set, and the presence of certain characters. The <span class="math-inline">2y</span> and <span class="math-inline">2a</span> prefixes indicate that the hash is a bcrypt hash. The number following the prefix indicates the cost factor.
Reply


Messages In This Thread
RE: bcrypt type assistance request - by marc1n - 09-27-2023, 03:46 PM
RE: bcrypt type assistance request - by pdo - 09-27-2023, 04:05 PM