Hello! I have been working on a Employee management system for practice, and after making the core classes, I thought of encrypting the data.
UTF-8 Leaves 3 bytes of data, making it difficult to read the salt. What do I do?Saving happens just fine, but the decryption is not working at the moment.Should I save in bytes or in string? And what is the right way to convert byte to string and vice-versa?
The problem is, every single place I search talks about symmetrical, one-time encryption and decryption, using the same salt for both and doing it in one run.
But I want to save it for later use! And I am really lost at EVERYTHING of this. Every help is appreciated, but here are a list of the biggest problems right now.
Here is the part of my code that handles this.
(Please ignore the comments. Most of them is for me to not forget what everything does.)
My localGetter class, that implements getter. Responsible for retrieving and saving data.
Thanks in advance.