flare / encrypt_token.py
ciyidogan's picture
Create encrypt_token.py
cb1c41a verified
raw
history blame
321 Bytes
"""
CLI: python encrypt_token.py <PLAIN_TOKEN>
Çıktıyı service_config.jsonc içindeki cloud_token alanına yapıştır.
"""
import sys, os
from encryption_utils import encrypt
if len(sys.argv) < 2:
print("Usage: python encrypt_token.py <plain_token>")
sys.exit(1)
plain = sys.argv[1]
print(encrypt(plain))