25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
871 B
27 lines
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')
|
|
|
|
|