Apr-17-2018, 11:45 AM
you should encrypt first, then save as json
This code not tested, but should work or only need minor modification.
at top:
This code not tested, but should work or only need minor modification.
at top:
import jsonafter line 14:
self.save_settings(filename) def save_settings(self, filename): with filename.open('w') as f: json.dump(self.settings, f) # for reading back in: def load_file(self, filename): with filename.open('r') as f: self.settings = json.load(f)