Hiding password in command line

Hi,
I am really new to java. Need some way to not display password on screen as the user enters it. Can it be done without creating text field?
thanx
Divya

This can't be done on the console in java. You need to use a GUI or JNI. Check out the last post from armalcolm on this thread for the JNI solution.
http://forum.java.sun.com/thread.jsp?forum=4&thread=195678

Similar Messages

  • 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.

  • Hide password on command line

    Dear everybody,
    I would like to find a way to hide password on command line when user type password. There is a way that use another thread to output '\b*'. However, it has some bugs. And I can't use Console class which has a method to hide password. Because my JDK is 1.5 and I can't change it because of some reasons.
    Does anybody know a way to hide password on command line?
    Thanks very much!

    Because my JDK is 1.5 and I can't change it because of some reasons.Look how sweet Console is in 1.6:
    import java.io.Console;
    public class ConsoleExample {
        public static void main(String[] args) {
            Console console = System.console();
            char[] password = console.readPassword("Please enter password:");
            //don't do this: passwords shouldn't be stringified
            String s = new String(password);
            console.format("password =[%s]%n", s);
    }Find a way to install 1.6! We believe in you!

  • Masking password on command line

    anyone know how to mask password from command line input
    before version 1.4 ?
    thx

    In his java section, there is a way here:
    http://www.rgagnon.com/bigindex.html

  • 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?

  • Vmrc.exe command line password option?

    Does VMRC 7.0 have an option to enter the password from command line? I can only find a way to enter the username. The password is prompted during connection. I would like to find a way to script this command .

    If this is a requirement what is wrong with using Ant? You can generate the Build.xml from the project by using New > Ant > BuildFile from Project so you don't have the pain of maintaining the basic script. Likewise you can use Ant as your build-system in the product as well if you only want to use one method. I find useful for making and testing all in one go.
    Anyway in answer to your question no - to see the command line options to the IDE type jdev -help from the command prompt.

  • 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...

  • 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.

  • 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 &lt;&lt;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,

  • Command line password parameter

    Hi,
    Is there a way to open an encrypted pdf file and give the password to Adobe Reader via the command line? I know this has been asked a couple of times before but all the answers I could find were at least three years old. If this cannot be done using the command line, are there any other options to call Adobe Reader while providing the password somehow?
    Thanks in advance

    any other way to programaticaly type in the password and clicking 'ok'?
    the idea is to restrict access to a pdf if certain conditions arent fulfilled.

Maybe you are looking for