Hi , thanks peter for valuable information, i m using bash shell.
i have decryptPassword() method from that method i need get the ecnrypted password which can be stored in password1 variable in shell script.
my program looks like below
import stuff here;
public class EncryptAndDecrypt{
public static void main(
String args[] ){
------------
-------
checkUserExistence();
encryptPassword();
decryptPassword(); //the decrypted password in this method should get stored in "password1" variable in shell script.
}
public static void checkUserExistence(){ ------------}
public static void encryptPassword(){
// This will encrypt and stores the password in the pasword config file
}
public static void decryptPassword(){
//This will decyrpt and prints the password.
// REQUIREMENT is the decrypted password should get stored in "password1" varaiable in the shell script.
/}
}//class
Can anyone help me in this regard.
Thanks,
Sekhar.