Skip to content

Instantly share code, notes, and snippets.

View miadabdi's full-sized avatar

Miad Abdi miadabdi

View GitHub Profile
@miadabdi
miadabdi / bench_bcrypt_hash.py
Created July 22, 2025 09:51
Bcrypt Password Hashing Benchmark with Python
#!/usr/bin/env python3
"""
Comprehensive bcrypt performance benchmarking script.
Tests hashing and verification performance across different cost factors and password lengths.
"""
import argparse
import statistics
import sys
import time