Hi from Austria.
I have the following situation:
I deliver my java program to a user which should be able to change the configuration inside the java properties files. Therefore, I want to deliver a little java tool where he enters a plaintext password and gets the encrypted string instead that he can enter within the properties files. Also I don't want him to tell the password that I use for encrypting and decrypting the values.
My problem is that when I use the StandardPBEStringEncryptor that I use for encrypting the string using the same password I get no results during decryption.
Also when I try to run decrypt.bat (yes, I am using Windows XP 32) on the string that I encrypted within the program I get an empty output. No error message, just an empty string. When I encrypt the text using encrypt.bat input="xyz" password="pass123" the decryption works just fine.
Is there any way to encrypt the passwords for the properties files within my own program?
Thansk in advance.