Fix up configuration, add some meta files and utils
This commit is contained in:
9
cmd/generate_key.py
Normal file
9
cmd/generate_key.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Generates a key in the format compatible with Synapse and Vona.
|
||||
|
||||
import base64
|
||||
import os
|
||||
|
||||
key = base64.b64encode(os.urandom(32)).decode("utf-8")[:43].replace("/", "_")
|
||||
key_id = base64.b64encode(os.urandom(32)).decode("utf-8")[:6].replace("/", "_")
|
||||
|
||||
print(f"ed25519 {key_id} {key}")
|
||||
Reference in New Issue
Block a user