Hiding passwords behind **** in command line.

Hi,
I am coding a program that needs a password, and I want to hide it but I just can't find the proper way. I've tried jline to no avail, I couldn't get it to work. Any ideas on ways to hide a password behind ****?
Thanks, bto.

Check out the console class http://java.sun.com/javase/6/docs/api/java/io/Console.html#readPassword()
I've not used it but readPassword should do what you want.

Similar Messages

  • Hide oracle password on Unix command line call?

    Does anyone know whether you can hide the password for a command line call to rwrun60 under Unix? For other Oracle products like sqlplus you can hide the password by supplying it using the redirection operator. i.e. sqlplus userid @script <<EOD and then put the password or password@sid on the next line and then EOD on the 3rd line to end the redirection. This virtually hides the password from anyone able to look at processes on the system. Can this also be done for rwrun60? If you just put the userid after userid= will reports prompt you for a password?

    Take a look at http://java.sun.com/features/2002/09/pword_mask.html.
    Hope this helps,

  • How do I change my password on the command line?

    How does a user change their password on the command line in 10.4? This user is not an admin. I can try "passwd" and it asks for my old password, and then new password. Then it just says "Sorry" and does not change my password.
    Thanks!

    Is the user able to change the password from "System Preferences" > "Accounts" - i.e is the problem specific to the command line? If the user is unable to change their password at all, and the Mini has an Intel processor, they may be affected by the issue described here:
    http://docs.info.apple.com/article.html?artnum=304703
    Other users have posted here indicating that reinstalling the 10.4.8 update using the "combo" updater as suggested in the article has resolved the issue for them...

  • Encrypt password in Linux command line

    Hi All,
    Database version:11.1.0.7
    OS:Linux
    we have script which get executed daily. In that particular script we are using hardcoded password for schema example:
    sqlplus ASBC/XXXXX @/tmp/test.sql </dev/null
    I need to remove hardcoded password use. As same script is called for different instance which have different password for ASBC
    Can you please provide me guid lines to do so?
    Regards,
    Neev

    Neev wrote:
    we have script which get executed daily. In that particular script we are using hardcoded password for schema Why scripts? This is insecure. Not well managed. Not particularly robust. Difficult to manage. With very little control. There is in fact very little benefit in putting database code, in a script, outside the database.
    Database code should be inside the database. As proper structured programs and not as some silly kindergarten script (harsh perhaps as there are valid reasons for using scripts, but my experience says that the overwhelming majority of SQL scripts are significantly better off as code inside the database).
    And you struggling with the issue of authentication simply proves the point about how ill-advise it usually is to ignored the "stored" part of the PL/SQL stored procedure language.

  • Password from command line

    I have some password protected pdf documents. I would like to specify the password on the command line when I open them in Adobe Reader. Is there a command line option for this? (If it makes a difference, I have Windows Reader v. 8.1.2. running on Vista.) Thank you in advance.

    This has been requested so often that I can only assume that Adobe
    aren't doing this for a strong reason: perhaps a security related one.
    Aandi Inston

  • Changing OD Password via Command Line

    How can i change the OD password via the command line? passwd doesn't do it because the password is still marked as "User must change password on next login"
    I have a Mac OS X server (10.4.6) set up for Mobile users for mac os x clients (10.4.2-6) and I'm also setting up for a PDC for out windows computers. Right now the only hold up is if the password is expired in OD, windows is unable to change the password. So I'm going to custom edit my smb.conf with the proper settings since Mac OS X doesn't seam to do it.

    anyone?
    basicly i need to know if there is a command line program to changet users OD passwords and mark the password has been changed in OD.
    is this posable? and whats the command?

  • Tiger Server: Default MySQL works for phpMyAdmin but not command line ? ? ?

    Greetings all,
    I followed the excellent instructions at
    http://discussions.apple.com/thread.jspa?threadID=132783&tstart=0
    on upgrading PHP to version 5 and getting (the preinstalled) MySQL setup with phpMyAdmin
    I can connect through the phpMyAdmin, create new dbs, etc. Problem is that now I CAN'T connect from the command line. (I originally set my new root password from the command line and that's the last time I could connect from there!
    Now I get the dreaded ERROR 2002 when I attempt:
    /usr/bin/mysql -h localhost -u root -p
    If I use the IP address or hostname instead of "localhost" (after -h) I get a ERROR 2003. Dropping the -h and hostname from the line above still gets me a ERROR 2002.
    My phpMyAdmin config is a connect type "TCP" not socket, which might be one reason it works and the command line doesn't, but I still don't know where I've gone wrong.
    My /var/mysql/* is all owned by mysql and group www.
    I'm finding lots of people asking about the ERROR 2002, but not finding any solutions (particularly for Tiger Server). I'd prefer to use the preinstalled MySQL to installing a new installation (the thread referenced above says upgrading or removing the MySQL installation is too hard to do) and there has GOT to be a reasonable explanation for why it works with phpMyAdmin, but not the command line.
    Thanks in advance for any replies!
    Many   Mac OS X (10.4.3)  

    You know what? I think when I started mysql_safe, I did it with sudo. Maybe that is my problem?
    If so, what user do I want to start it as? I've seen one suggestion of doing this:
    ./bin/mysqld_safe --user=mysql &

  • Ps command , DB credentials visible on command line.

    Guys,
    In one of my shell scripts, I connect to the database as below:
    sqlplus -s /nolog <<EOF >> ${LOG_FILE}
    CONN ${DB_CONNECT}
    I would assume that my database connect credentials will not be visible in the command line , when someone executes command below, during the execution of my shell script.
    ps -ef | grep "sqlplus"
    However, the ps listing makes the credentials visible..Thoughts please..
    Thanks!!!
    -Bhagat

    Bugs wrote:
    sqlplus -s /nolog <<EOF >> ${LOG_FILE}
    CONN ${DB_CONNECT}
    I would assume that my database connect credentials will not be visible in the command line , when someone executes command below, during the execution of my shell script.
    ps -ef | grep "sqlplus"
    However, the ps listing makes the credentials visible..Thoughts please..Not really relevant to either the SQL or PL/SQL server languages. Please post Unix/Linux questions in a more appropriate forum.
    Operating system and version?
    The ps command shows the command line. With the above example, your authentication string is not on the command line. Instead you redirect STDIN and the connect command with the username and password are read from standard input. As it is not on the command line, I fail to see why ps would show this.
    I think you are misdiagnosing the problem - seeing another sqlplus process that actually specify the username and password on the command line and mistaking it for your sqlplus process.

  • Hiding serverargs userid and/or ifrun60 command line arguments

    I am running Forms 6i applications via the web using 6i Forms Services (on windows 2000). All my applications work properly.
    Problem: How to secure the username and password (userid) when launching a form over the web.
    The HTML that launches a Form on the web contains the 'serverArgs' parameter that contains all information required as seen here:
    <PARAM NAME="serverArgs" VALUE="module=run.fmx userid=user/pass@SID">
    I need to know how I can hide the userid. I need to log the user directly into the application because it is integrated with an existing servlet based application. What I don't want is the userid and password sitting in their browser cache - this is a major security problem. Is there a way of hiding/dealing with the password?
    Here's another angle that might solve the same problem: I recall reading somewhere that the ifrun60 (or whatever your runtime is) has a command line upper limit of 255 or so characters. I also remember (I think) that you can avoid this problem by putting your arguments into a file that the forms runtime will read. Is this possible and if so, how is it done? I figure if this is possible, I can solve my initial problem by specifying a file to read the username/password from (located on the server) in the 'serverArgs' parameter (above). I am assuming of course that the serverArgs parameter expects the exact same inputs as that of the runtime.
    Any information relating to either issue would be GREATLY appreciated.
    Thanks,
    Matt.

    After reading into the changes in patchset 6, upgrading and expecting to use this functionality I was terribly disappointed. It seems that if I wanted to use the Servlets (that were included with patchset 6) to hide the userid and password, I need to install 9iAS!! What's the point? So the solution is to upgrade to forms 9i and that there is no solution for 6i.
    Instead of installing 9i, I attempted to hack away at the jar's that included the servlets that would solve my problems. I managed to get them up and running (the servlets) without installing 9i but didn't finish making them launch Forms 6i programs themselves. I assume that it is entirely possible to do so, but you need to really know your way around an application server.
    The answer to my question is that there is no way for Forms 6i (running on the 6i Forms Services) to properly hide the userid/password string. In 9i Forms Services, this is definately possible, but in order to run 9i Forms Services, you need to install 9iAS Enterprise Edition... In my case, 9iAS EE is way more than I wanted. It contains way too much extra functionality that I wasn't prepared to use and is way too large. Having Forms Services as a separate component (as it was in 6i) was a much better solution.
    Matt.

  • How to login in command line by adding user/password in the same line

    is it possible in OSX to login in terminal by typing:
    +login username password+
    I tried many unix command and never find a command that can do that in one line, it always ask for the password in the second line.
    I need that to be used in Python application,
    or if there any possibility to write code in python to do that in OSX using python osx modules,
    while in windows it worked perfect by using win32API in Python.
    I hope Apple developers can help me with That
    Thanks

    This isn't possible because it would be a terrible security vulnerability--any process on the system can see a program's command line arguments. (Just type "perl -e 'sleep 5' & ps" in a terminal if you don't believe me.) If you want to log in like this, you'll have to open the "login" program in such a way that you can give it the password through its standard input.
    Also note, however, that "login" will not change the account your Python program is running as; it just starts a shell running as that account. If you want your program to run as a different user, you need to look into a set of commands and techniques called "setuid" or just "suid"; a Google search for "setuid python" should get you started. (I'm not a Python programmer, so I can't really tell you exactly how setuid works in Python.)

  • Hide command line ebs password

    Hi All,
    is there a way to hide command line password for apps user.
    when start or stop ebs apps from command line, i have to type
    $adstrtal.sh apps/apps
    is there a way to hide this password.
    Thanks in advance.

    Hi,
    I do not think there is a direct way to do this. However, look at this document and see if it helps.
    Note: 377858.1 - Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=377858.1
    Another option would be calling "adstrtal.sh apps/<apps password>" from some other script.
    Regards,
    Hussein

  • File format for username/password file for -vcusersfile command line option

    In what format do I specify username and password in a file that I can use for
    the -vcusersfile command line option?

    The text file should contain name/password pairs separated by an equal sign. Example:
    myname1=password1
    myname2=password2
    Hope that helps,
    Susan Doan

  • I want to set password security on a pdf from the command line

    I have a pdf file that is created and placed on a report server.  I would like to run a batch cmd to set the security for that pdf based on a saved security policy.  I will call the batch cmd file from a batch application.  Can Acrobat XI handle this operation or do I need a third party tool.  The pdf is created by BI Publisher (Peoplesoft).
    Thanks,
    Jay

    You need to invoke your cmd manually, don't you? So, instead of opening the Terminal application, enter the command and press "Enter" you open Acrobat and click a button. It's a different manual step to start the process, but you need a manual step to start the process anyway. I do realize that you may have a bash/perl/python script that does more than just apply encryption but that's the capability that Acrobat has.
    Regretfully, Acrobat JavaScript API does not provide functionality to encrypt with password. You can use JS to encrypt with certificates but [for unknown to me reason] not with passwords. Otherwise it could've written a JS script that encrypts, embed this JS in a separate PDF, open that PDF from a command line with your JS script executing on Open and have this LS script do all the work you need. Well, you can do that for certificate encryption but not for password encryption. I don't know why. And you cannot invoke an action from  a JS either. Oh, well...

  • How to Hide username and password in command line using maxl

    Hi,
    How to encript my user name and password in command line prompt when I am login to Essbase server using batch file:
    *1_Here is my batch file:*
    Name of the bat file AV_Assig_Var1.bat
    rem This batch file defines the following variables:
    set $1 = 'admin';
    set $2 = 'password';
    essmsh AV_Asig1.mxl admin password
    ===========================
    *2_Here is my maxl file:*
    Name of the bat file AV_Asig1.mxl
    /* Create a process log */
    spool on to 'D:\lova\spool_log.txt';
    /* login (using variables from a batch file */
    login $1 $2 on 10.42.100.229;
    /* create application and database */
    create application AV_Asig1;
    create database AV_Asig1.AV_DB;
    /* End process log */
    spool off;
    exit;
    *3_Command line prompt*
    D:\Ess>AV_Assig_Var1.bat
    D:\Ess>rem This batch file defines the following variables:
    D:\Ess>rem 1: username
    D:\Ess>rem 2: password
    D:\Ess>essmsh AV_Asig1.mxl admin password
    Essbase MaxL Shell - Release 9.3.1 (ESB9.3.1.0.0A181)
    Copyright (c) 2000, 2007, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login admin password on *10.46.100.222*; /* I want to hide this information */
    OK/INFO - 1051034 - Logging in user [admin].
    OK/INFO - 1051035 - Last login on Monday, June 14, 2010 12:44:03 PM.
    OK/INFO - 1241001 - Logged in to Essbase.
    MAXL> create application AV_Asig1;
    OK/INFO - 1051061 - Application AV_Asig1 loaded - connection established.
    OK/INFO - 1054027 - Application [AV_Asig1] started with process id [6792].
    OK/INFO - 1056010 - Application AV_Asig1 created.
    MAXL> create database AV_Asig1.AV_DB;
    OK/INFO - 1054014 - Database AV_DB loaded.
    OK/INFO - 1056020 - Database AV_Asig1.AV_DB created.
    MaxL Shell completed
    D:\Ess>
    I am looking forward to inputs from anybody.
    Thanks & Regards,
    Deepthi.

    Beyond that thread, I gave a presentation at Kaleidoscope last year around MaxL that goes into quite a bit of depth re encryption and a whole bunch of other MaxL goodies.
    To download it, go to www.odtug.com, click on Tech Resources, Essbase/Hyperion, and use the search box for MaxL.
    There are two presentations, one by Tracy McMullen and the other by me. Tracy's is a good introduction to the various command groups; my presentation focused on a few areas in depth, one of which was encryption. The title is "Master Essbase with MaxL Automation".
    You will need to join ODTUG to download the presentation, but there is a junior membership that is free.
    Regards,
    Cameron Lackpour
    P.S. ODTUG Kaleidoscope 2010 is coming up in two weeks, starting on 27 June 2010 -- for those of you still on the fence, it is an awesome conference and I urge you all to come. The content this year will be fantastic.

  • Command Line to change all the users passwords

    Hello there,
    I run Tiger Server. I want to change the password for 300 students from the command line to 1234 as a password for all the students. Is there any easy way to change all the password at once.
    Thanks,

    I changed it from WM. No terminal.

Maybe you are looking for