Helps debugging encrypted variables issues
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

27 řádky
871 B

# -*- coding: UTF-8 -*-
from setuphelpers import *
uninstallkey = []
variables = {}
# Read local variables file if available
if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(makepath(programfiles32,'wapt','private','variables.txt')):
print('Reading local encrypted variables file')
from cryptography.fernet import Fernet
import yaml
key = open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read()
print('Key is %s', % key)
f = Fernet(key)
print('Fernet object created')
crypted_var = open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read()
print('Encrypted vars found : %s' % crypted_var)
decrypted_var = f.decrypt(crypted_var)
print('Decrypted vars %s' % decrypted_var
def install():
print('Nothing to do')
def uninstall():
print('Nothing to do')