Initial Cariflex project
- 40 FlexMeasures assets (10 PV, 10 Bat, 10 Chg, 10 EV) - Geolocated on Martinique - Documentation: architecture, deployment, concepts - Standards: Flex Ready, S2, OpenADR, EPEX SPOT - R&D tools: HAMLET, OPLEM, lemlab - Map patch: Mapbox -> OpenStreetMap
This commit is contained in:
13
scripts/gen_pw.py
Normal file
13
scripts/gen_pw.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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}")
|
||||
Reference in New Issue
Block a user