πŸ› οΈToolsShed

PBKDF2 Hash Generator

Generate and verify PBKDF2-SHA256 password hashes in your browser.

Uses PBKDF2-SHA256 via Web Crypto API. Format: hex_salt:hex_hash

Frequently Asked Questions

Code Implementation

import bcrypt

# Hash a password (cost factor 12)
password = "my_secure_password"
hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt(rounds=12))
print("Hash:", hashed.decode())
# $2b$12$...

# Verify a password
is_valid = bcrypt.checkpw(password.encode(), hashed)
print("Valid:", is_valid)  # True

is_invalid = bcrypt.checkpw(b"wrong_password", hashed)
print("Invalid:", is_invalid)  # False

# The salt is embedded in the hash β€” no need to store it separately
# Always use checkpw() for comparison (constant-time)

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.