I have a file I want to encrypt and decrypt based on a date. When writing it, I want to use the current date, but not the time. What would I use for this?
Then, whenever I want to decrypt it, I can just use File.lastModified to get the long date. From here, how do I convert this into only the date (and not the time) it was written (or last modified, which should be the same)?
I would prefer to avoid extra libraries, and if it's overly complex, that's fine because I am encrypting data and complex code would help throw off snoopers. Most of all, it needs to be able to read the date across all locales and platforms in the same manner, so as to not throw off the encryption.
EDIT: URL problem solved. Java wanted a / in between .net and ? in the following:
"http://login.minecraft.net/?user=" + username + "&password=" + password + "&version=99"
Now my encryption class is flipping out over something...