File size: 321 Bytes
cb1c41a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
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))