encryption completed! the data is encoded to json and then this encoded form is encrypted. and while decryption, the data is decrypted and then decoded using json. once this is done, we get a dictionary, with the keys as the record numbers and the values as the records themselves. and we then write the values(records) to the new file. And the encryption and decryption will automatically take place after and before the GUI is initialised. Works like a charm! the version is ready for release. But I have asked a question to ask if it is possible to hide the plaintext file that is generated while the application is running, as this proves to be a threat and anybody can copy the file while the application is running and all of the data is compromised.