Link to home
Start Free TrialLog in
Avatar of replylalit
replylalit

asked on

Password as a argument

Dear all,
I am developing a console based application and it requires a password validation entry field. I want that password should not be printed in screen (rather some character should be displayed instead)
eg.
We have to pass the password as an argument in the following format:
c:\myexe  ps = ****** and then enter
where
myexe   is first argument ( name of my application)
ps=       is the second argument
the third argument is password AND THIS SHOULD BE IN CODED FORM eg. ********


Please comment!
ASKER CERTIFIED SOLUTION
Avatar of ZalexZ
ZalexZ

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spiritwithin
spiritwithin

As far as i understood this correctly, you want to pass a password to an application by command line, without actually writing? That is not possible.

You can either encrypt the command line string or store the password encrypted in a temporary file.

Cheers.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
replylalit:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.