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
Cant you just use any encryption library at all? Your basic code would be
Object o=...;
String s= new String();
ObjectOutputStream out = new ObjectOutputStream(StringStream(s));
out.writeObject(o);
And then you just pass s
into any encryption system you want.
Edit: I forgot that StringStream
is a C++ thing, not a Java one. But you can basically do the same thing, take a look here.