mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
feat(inventory): add random_hex_32 generator
feat(bbb/schema): auto-generate etherpad_api_key; set fsesl_password to alphanumeric_32 test(unit): add InventoryManager tests (Option B) expecting feature-generated creds as plain strings docs: full autocreation of credentials for BigBlueButton now enabled See: https://chatgpt.com/share/68d69ee8-3fd4-800f-9209-60026b338934
This commit is contained in:
@@ -142,7 +142,8 @@ class InventoryManager:
|
||||
"""
|
||||
if algorithm == "random_hex":
|
||||
return secrets.token_hex(64)
|
||||
|
||||
if algorithm == "random_hex_32":
|
||||
return secrets.token_hex(32)
|
||||
if algorithm == "sha256":
|
||||
return hashlib.sha256(secrets.token_bytes(32)).hexdigest()
|
||||
if algorithm == "sha1":
|
||||
|
Reference in New Issue
Block a user