def storeGlobalPwd(): import ap import m ap.genSalt() pwd = ap.encrypt(pwordE.get()) # encrypt the given password ap.storeGlobal(pwd) f.createDataFile() roots.destroy() # This will destroy the signup window. :) m.showWindow()
def writeData(contents): try: with open(data_path, "w+", encoding='utf-8') as file: file.write(ap.encrypt(str(contents))) file.close() return True except IOError as e: f.Log(e, "writeData") return False