#!/usr/bin/env python3
"""Generate bcrypt hash for FlexMeasures admin password."""
import bcrypt

password = b"Digitribe972"
# Generate salt and hash
salt = bcrypt.gensalt(rounds=12)
hashed = bcrypt.hashpw(password, salt)
print(f"Hash: {hashed.decode()}")

# Verify
check = bcrypt.checkpw(password, hashed)
print(f"Verify: {check}")
