I need to test it because, from what I read in your script (assuming I've read it correctly...):
Code: Select all
encryptlist = json.loads(open('encrypt-txt.json','r').read())
if WAPT.host_uuid in encryptlist:
host_key = WAPT.get_host_key()
encrypttxt = host_key.decrypt(encryptlist[WAPT.host_uuid].decode('base64')).decode('utf-8')
either
Code: Select all
print(value['computer_fqdn'] + ' : ' + value['uuid'] + ' : ' + encryptlist[value['uuid']])
I need to decode a password using the machine's UUID. Does this mean I need to pre-encode the UUID of all the machines with the password beforehand in a list? That's not easy given the number of machines...
Another question: I need to enter this password as an argument to the key in the uninstallation program. It's not specific to any particular software, so there may or may not be a password required for uninstallation
Code: Select all
for soft in installed_softwares(software):
run(WAPT.uninstall_cmd(soft['key']))
Can we add a password argument to WAPT.uninstall_cmd(soft['key']) and specify an optional password (used or not during uninstallation...)?
Is this feasible? Thank you for your feedback!
