DEV Community

loading...

Discussion on: Can you create "resources" in .jar files in Java?

Collapse
alainvanhout profile image
Alain Van Hout

You could also create a file and make it hidden, as e.g. described in javacodeexamples.com/make-file-hid....

I wouldn't advise using your jar file for storage. That's not what it is meant for and as such you'll likely encounter more and more difficulties along the way.

Collapse
baenencalin profile image
Calin Baenen Author

Okay, well, then I should probably go about encoding the data?

Because, if possible, I want to do all I can to prevent file tampering.

Thanks for the suggestion, it really helps!

Collapse
alainvanhout profile image
Alain Van Hout

There are a number of ways to do that. This might be a reasonable starting point: baeldung.com/java-cipher-input-out...

Thread Thread
baenencalin profile image
Calin Baenen Author

Thanks for this.
Cheers!

Forem Open with the Forem app