I have a small java program that uses a web service that requires authorization. Thus, java prog (which should be launched using the Windows task scheduler) must have a user / password argument. How can I store them somewhere without creating them in plain text in a file?
So far, I tried to use runtime.getRuntime and CACLS to get the plaintext file, but changed the permissions, so only the owner could open it (did not work, not sure why).
Password encryption does not work, because if I transfer the hash to the web service, the web service is just "errr what? Denied, get lost", but if I use secret key encryption, you need a password to decrypt the password. and where I store it .: P
Help? You are welcome?:)
Thanks.
dr robotnik
source
share