I\'d like to store a serialized object to a file however I\'d like to make it encrypted. It doesn\'t need to be really strong encryption. I just want something easy (preferably
As a general answer (since I don't use Java much these days):
I suggest searching multiple forms of encryption and find which suits what you'd like to do, and then to find and modify a module already written for your data or to write your own based off of the algorithm that you would like use.
For example if you wanted to use SHA256 and found a module already written for you, just modify it to use the data stream you want.
private ObjectName modifiedSHA256(input stream, ..., ...)
{
// Modified algorithm
}
And then you can make a call to it whenever you want to write the data stream somewhere. The module will then save its own data stream which is then written to a file.