File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

option to not provide a password in command line

 
kunal kulkarni
Greenhorn
Posts: 11
Mac PPC
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,
I am trying to figure out the best way for my below requirment:

I run C compiled exe's and the command looks like these:
my_sample_exe -u=username -p=password -g=group -log=path_to_log_file

I have to provide these exe's to end users and give them the above command to run it. However, I dont want to give them the actual password in -p= argument (rather hide the actual password). what would be the best way to achieve this?

we developed the following alternative:
created a code specific to encryption decryption logic and we are recommending developers to reuse (copy) the same function in their codes. but not all exe's are developed by us! there are few cases we only have exe's but no access to code. in this case, we dont know what to do!

can you please help us achieve our goal of hiding password in -p argument for above command?

Thanks,
Kunal
 
Tony Docherty
Bartender
Pie
Posts: 2878
59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies if I've misunderstood your question but what does this have to do with Java?
 
Henry Wong
author
Marshal
Pie
Posts: 20826
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Topic moved to C/C++ forum.
 
kunal kulkarni
Greenhorn
Posts: 11
Mac PPC
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony:My sincere apologies for posting it in incorrect forum.
Henry: thanks.

since, it a generic logical programming question, do you guys have an idea on how I could do this?

thanks,
Kunal
 
Tony Docherty
Bartender
Pie
Posts: 2878
59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can have your own exe which just handles the decryption and then launches the third party exe with decrypted args.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic