def postItem(username, password, subreddit, filename, KEYPASS): filepath = filename k = filename.rfind("/") filename = filename[k+1:] loginMod(username,password,subreddit) cipher = AESCipher(KEYPASS) comment = cipher.encrypt_file(filepath) post_encryption(filename, comment) postMessage.SetLabel("Done") postMessage1.SetLabel("Done")
def postItem(username, password, subreddit, filename, KEYPASS): filepath = filename k = filename.rfind("/") filename = filename[k + 1:] loginMod(username, password, subreddit) cipher = AESCipher(KEYPASS) comment = cipher.encrypt_file(filepath) post_encryption(filename, comment) postMessage.SetLabel("Done") postMessage1.SetLabel("Done")