In my application I want to use Private key which will encrypt password once and decrypt as many times the tool will be run.
Application will run like:
- User will encrypt the password using the tool.
- Then user will paste that password in properties file.
- When next time tool will run it will read that password and decrypt it to login.
Here I am facing problem like, when I encrypt the password I am doing it using another tool just for encryption perpose. So when I try to decrypt it the key is different than key generated. How can I share private key between these two tools..
Thanks..