Files
2026-03-13 22:34:33 +00:00

16 lines
616 B
Python

from cryptography.fernet import Fernet
import json
# CHAVE MESTRA - DEVE SER A MESMA NO MONITOR.PY
MASTER_KEY = b'vS-C5Z_R1ST-Gf_K8_L9_Xo2-M1A3B5C7D9E1F2G3H4='
def gerar_serial(hardware_id, cliente, data_expiracao):
f = Fernet(MASTER_KEY)
dados = {"h": hardware_id.strip(), "c": cliente, "e": data_expiracao}
return f.encrypt(json.dumps(dados).encode()).decode()
print("--- GERADOR DE LICENÇA VOLTEC ---")
hwid = input("Hardware ID do cliente: ")
nome = input("Nome do Cliente: ")
validade = input("Validade (AAAA-MM-DD): ")
print(f"\nSERIAL:\n{gerar_serial(hwid, nome, validade)}\n")