mirror of
https://github.com/hanzoai/apple-health-mcp-server.git
synced 2026-10-30 18:47:42 +00:00
12 lines
276 B
Python
12 lines
276 B
Python
import os
|
|
import sys
|
|
|
|
from cryptography.fernet import Fernet
|
|
|
|
if __name__ == "__main__":
|
|
if "MASTER_KEY" not in os.environ:
|
|
print("Set MASTER_KEY env variable to encrypt")
|
|
|
|
f = Fernet(os.environ["MASTER_KEY"])
|
|
print(f.encrypt(sys.argv[1].encode("utf-8")))
|