No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
27 líneas
871 B
27 líneas
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')
|
|
|
|
|