Hidden password

need to write a samll network application. when user enters his password in command line(DOS, unix shell...), how to keep the password from displaying on the screen when typing it in but get it in the program? (for example, FTP needs password to login). thanks for help.

You really shouldn't cross-post.
If you use a JPasswordField, it will allow the user to
type their password and will echo asterisks.          JFrame jf = new JFrame();
          JPanel jp = new JPanel(new FlowLayout());
          JPasswordField jpf = new JPasswordField(20);
          jp.add(jpf);
          jf.getContentPane().add(jp);
          jf.setSize(300, 200);
          jf.pack();
          jf.setVisible(true);
          jf.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent we) {
                    System.exit(0);
          });Mark

Similar Messages

  • Passing a hidden password via form field

    I have successfully done this with an html form but don't
    know how to accomplish the same thing in Flash. Here is what I've
    done in html:
    <table><tr>
    <td><form name = "form1" method="post"
    action="https://www.site.com/index.php"><input
    name="password" type=hidden value="99999">
    <a href="javascript:void(document.form1.submit())">LI
    NK</a></form> </td>
    </tr></table>
    In the past I've been able to write a an onclick event in
    Flash but for whatever reason (lack of intelligence on my part tops
    the list) I can't get it to work this time. This is an action
    associated with a button. Here is an example of what I've done in
    the past in Flash:
    on (release) {
    getURL("https://www.site.com/index.php", "_blank", "POST");
    set(password, "999999");
    So, am I missing something? Is there an easier/better way to
    accomplish this?

    your table name - USER - is very likely a reserved word in
    your database.
    try using it in square brackets: [user]
    btw, since you are selecting from only one table, you do not
    need to
    prefix every column name with table name...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Hidden password in input text box

    How do I hide the letters in a password input text box. I
    have an input text box for the viewer to type in a password and
    would like the password to not show when typed in, like is the case
    with html text boxes, where you just see a bullet for each letter
    in the password. How would I do this? Is there a font I could use?
    Thanks for any help with this.

    Select the Input text object on the stage. In the Properies
    window, select the pulldown at the bottom center, it probably says,
    "Single line". Select "Password". You can then get the actual text
    that the user types in by asking for the instance name's text value
    or the variable's value for that Input text field. Be sure to embed
    the font that you want to use.

  • Generate a hidden password

    Hi,
    I need to create a script that creates a zip file and creates a password on the zip file.  Because each zip file needs a different password I need a reliable way to create the password but a way to know what the password will be.
    I was thinking that maybe I could do it with a date stamp which is then hashed.
    Is there any standard for doing this?, I could easily do this with a variable and some maths functions but need to know its secure.
    regards
    james
    Alter De Ruine

    Any password is as secure as the next one, and zip files are not that secure to begin with. Just have the script generate a random password for each file in whatever way is most convenient to you. Unless you actually encrypt the zip file using something
    like AES, anyone who is interested in teh zip file contents can use a couple of zip file crackers and read whatever you store in that zip file.
    This is correct. If you want something actually secure, either use 7z files with the AES encryption (which is probably more difficult with powershell since it doesn't seem to have a NET library) or use built in crypto.
    As to the latter, you could zip the files, read the filestream, Base64 encode it (not sure if this is required), then use the built in Rijndael assemblies to encrypt it.  A packaged function for the encryption is at
    http://gallery.technet.microsoft.com/scriptcenter/PowerShell-Script-410ef9df

  • My girlfriends ex left this Mac computer behind on PURPOSE!  Can her ex still operate this computer?  I don't know the default keychain password or how to find it

    Ok...so I am REALLY new to this whole Mac thing and my girlfriend knows less than I do about computers and phones, etc.  but I have been using her Mac computer and thought how cool it was until I synced my iphone to it and all of her ex's apps went on my phone so then I tried to find out how to get her ex's name and info off the computer and realized that just because the log in name is my girlfriends name...the computers name and all HIDDEN passwords and HIDDEN dates of when things have been changed.
    Can this person have access to anything I have done on that computer?
    How do I find the default keychain login?
    How can I assure she cannot get any files or ANYTHING off this computer?
    My girlfriend doesn't really want to lose her files like photos and iTunes but I am assuming since my girlfriend wasn't really ever the one "truly" logging in....
    I don't know.
    Need help for dummies here!

    They were together living in this house for 7 years.  My girlfriend purchases the Mac.  Her girlfriend sets up the Mac.  They mutually break up and her girlfriend says "I put the computer in YOUR name" so don't worry... Go ahead and use it.  When I say she left it behind on purpose what I mean is the computer is in the ex's name bc she PUT it in her name ...like all the cloud stuff.  And sub accounts are in my gf's name...like ....user login.  But my gfs not really the administrator of this computer and her ex has 3 macs of her own that I (THINK) are attached to this "system".
    I am SO new at this that I JUST created an account on this website to try to get help.  I own a business and have been using this computer not knowing that my girlfriend isn't the one who set her own computer up.  I know nothing about a Mac.  I don't know if someone who has another Mac on the system can transfer files?  I have been logging onto the computer under my gf's user name and password just to access what in my mind is known as the regular Internet.  My gmail...my business email login...passwords...bank account, ect.
    I just want to ensure she can't access MY stuff.  I don't care about HER stuff!
    I'm not a hacker!  ****....I didn't even know how to open up a new tab on the freaking thing until just a few months ago!  Lol

  • Allowing user to set password for form?

    I have a performance evaluation form that has been rights-extended so users can save data typed into the form, but the users would like to be able to set their own passwords for security purposes. Is there any way to do this? My last resort I guess will be to just tell them to zip the pdf file into a password protected zip file, but I feel like there must be a way to script something in the doc:ready event??
    Thanks,
    Jo

    Hi,
    I designed a sample to protect a form with a password.
    Therefore I use 2 hidden fields somewhere in the form that store either the password and the state of the form (protected or unprotected).
    The I added two script, one in the preSave:event one in the docReady:event.
    The preSave script check if the form state is set to unprotected (0), if so it opens a response box to enter a password, that is stored in the hidden password field.
    After that the form fields are set to invisible and the form is saved.
    When the form is reopend the docReady script check if the form state is set to protected (1).
    If so, it asks for the password.
    If the password is wrong or empty the form fields stay invisible.
    The preSave:event script:
    if (xfa.resolveNode("#pageSet.Master.Protected").rawValue == "0")
         var pw = xfa.host.response("Enter Password", "Enter Password", "", true);
         if (pw != null)
              xfa.resolveNode("#pageSet.Master.PW").rawValue = pw;
              xfa.resolveNode("#pageSet.Master.Protected").rawValue = "1";
              Form1.Page.presence = "invisible";
    The docReady:event script
    if (xfa.resolveNode("Form1.#pageSet.Master.Protected").rawValue != "0")
         var chk = xfa.host.response("Password required", "Password required", "", true);
         var pw = xfa.resolveNode("Form1.#pageSet.Master.PW").rawValue;
         this.presence = chk === pw? "visible":"invisible";
    https://acrobat.com/#d=BKSKrGZKs0uYhWozbw0GUQ

  • Preventing Password Characters from being Displayed

    I know this question has been asked and answered about a billion times but I can't seem to find any definitive answer as to how it will be addressed or if there are any plans to address it in the future.
    We all know that when an iPad, iPhone, or iPod Touch user is prompted for a password (AppleID, enterprise, web site, etc) that the characters are displayed before being concealed by a black dot. Again, arguing over how ridiculous of a design flaw this is, at this point, completely moot. However, does anyone from Apple have an answer as to what will be or can be done in the future?
    My situation is this: I am an IT administrator in a private Jesuit school. Nearly all of our faculty have been given iPads and we have installed AppleTVs and new projectors in all of our classrooms for the faculty to mirror content on their iPads rather than using a desktop PC (we're trying to phase desktops out of the enterprise except for labs and work areas).
    All faculty using iPads have been briefed on this situation and we've had very few occurences of passwords being compromised. However, even the most vigilant educator slips up and, just today, it was determined that one of our teachers' test banks (which resides on the teacher's network home share) was accessed by a student who saw his password during an iPad mirroring session. The student copied tests and distributed them to his classmates.
    Besides venting a little and looking for some sort of solution, what I would like to know is Apple plans on addressing this in the next version of the IOS. Frankly, for the inroads that Apple has made into the classroom and enterprise with iPads, there appears to be very little thought given to how little things like password security and AppleID/iPad provisioning and the difficulty managing these things can affect an institution's decision to introduce a device that holds so much promise.
    Any case, if anyone at apple is listening, I VOTE THAT YOU OFFER SOME WAY TO CONCEAL PASSWORDS WHILE THEY ARE TYPED INTO THE PASSWORD FIELD (this can be configured as an option on Android devices, not sure why Apple can't do it).

    No sorry,  The only way I can think of would require modifying the iOS itself.  Unless you can find a password management app that would allow copying and pasting without showing the characters.  I use mSecure, and with that one can paste-to-clipboard a password without actually displaying the password.  As long as the app you are pasting the password into supports hidden password characters, you can paste the password into the field without it every dispalying any characters.  It works that way at least with the apps I use (banking/financial apps, for example).
    The onle issue with mSecure is that if you tap a bit too far to the left of the "copy to clipboard", you will display the password.  But there are lots of password manager apps in the app store, so I'm not saying msecure is the only or even the best option.

  • How to hide a password from a prompted osascript dialogue from a Mac/UNIX Shell Script

    I'm in the final phase of designing a script to automate my Active Directory binding that will be used by multiple people. Because of this, I need to prompt for a user name and password. I've successfully created the prompt, but want to find some way to prevent the password from showing up in the dialog box asking for the password (this will be done remotely, I don't want the password visible).
    It can be turned into stars, dots, not show up at all, anything, I just need it NOT to show visually, but still be able to be passed down to the dsconfigad command.
    I've tested the script itself and it works and a hidden password is the last piece that I need to make it live.
    (Excuse any extra comments on here, I've pieced this together from a lot of different sources)
    Any help you could offer would be greatly appreciated!
    #! /bin/bash
    while :; do # Loop until valid input is entered or Cancel is pressed.
        user=$(osascript -e 'Tell application "System Events" to display dialog "Enter the network user name:" default answer ""' -e 'text returned of result' 2>/dev/null)
        if (( $? )); then exit 1; fi  # Abort, if user pressed Cancel.
        user=$(echo -n "$user" | sed 's/^ *//' | sed 's/ *$//')  # Trim leading and trailing whitespace.
        if [[ -z "$user" ]]; then
            # The user left the project name blank.
            osascript -e 'Tell application "System Events" to display alert "You must enter a user name; please try again." as warning' >/dev/null
            # Continue loop to prompt again.
        else
            # Valid input: exit loop and continue.
            break
        fi
    done
    while :; do # Loop until valid input is entered or Cancel is pressed.
        netpass=$(osascript -e 'Tell application "System Events" to display dialog "Enter the network password:" default answer ""' -e 'text returned of result' 2>/dev/null)
        if (( $? )); then exit 1; fi  # Abort, if user pressed Cancel.
        netpass=$(echo -n "$netpass" | sed 's/^ *//' | sed 's/ *$//')  # Trim leading and trailing whitespace.
        if [[ -z "$netpass" ]]; then
            # The user left the project name blank.
            osascript -e 'Tell application "System Events" to display alert "You must enter a password; please try again." as warning' >/dev/null
            # Continue loop to prompt again.
        else
            # Valid input: exit loop and continue.
            break
        fi
    done
    MACNAME=$(scutil --get ComputerName)
    sudo dsconfigad -add DOMAIN \
    -username $user \
    -password $netpass \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword LOCALPASS \
    -groups "GROUPS"
    #sudo rm -- "$0"

    I think you want to change line 18 to read:
        netpass=$(osascript -e 'Tell application "System Events" to display dialog "Enter the network password:" default answer "" with hidden answer' -e 'text returned of result' 2>/dev/null) 
    and of course add the 'with hidden answer' bit to line 23 as well.

  • I didn't change my password yet my macbook pro does not accept it.

    I've been trying to log in to my macbook pro that I only bought this past black friday. I put in my password, and it didnt accept it. I didn't change my password either and I know no one else did because they would have to know my password. Is this a glitch? What can I do to fix it. As you can tell i'm very upset because I spent 1,000+ dollars on a computer that wont even let me in on the password that I set.

    You can reset your password.
    Method 1
    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/
    or
    http://www.cultofmac.com/111456/discover-the-hidden-password-reset-tool-in-lion- os-x-tips/
    You have 90 days of free tech support from Apple from the day of purchase.
    AppleCare:1-800-275-2273
    Best.

  • Unable To Recover Password

    I have an iCloud account on my iPhone 4s. It has a hidden password I can see when I access it on my iPhone however when I go to the actual iCloud website, I'm unable to login using the same account name I see in my iPhone iCloud settings.
    When I do the password reset via email authentication, I never get an email. I have no idea what email address the password is being sent to. Is it going to <username>@icloud.com or perhaps my Gmail email address...I have no idea?
    When I fo the password reset via security authentication, it fails on my DoB.
    Can anyone please help me?    

    Well I managed to guess it finally. My question is how can I now sync my App Store login with my Apple ID?
    My Apple ID is: cmennens
    My App Store ID is: [email protected]
    How can I just make my App Store ID = [email protected]?    

  • Unable to send/change Mail password

    When I access “Internet Accounts” info on my Mac Pro (c.2009), using OSX 10.9.4, it flashes message that Mail cannot send my password to the POP server securely. But, ever since  Mt. Lion came along, Mail no longer asks for its own password. I’ve forgotten what it is and cannot seem to delete the hidden password in Accounts. What can I do?

    RMinervini...   Yes, I was able to resolve the issue, thanks to someone who answered my plea for help.
    Their recommendation was to DELETE the mail account on my iPhone, and then ADD a new account - essentially replicating the old account.
    While the advice did not recommend the following - I deleted and added these accounts only AFTER I backed-up my iPhone (just in case), and I wrote down all of the settings and items in the "bad" account, so that I knew what settings I needed to add when I ADDED the new account.
    Good luck.

  • I have forgotten my admin password. What do I do?

    If I use a disk to reinstall the operating system, will it erase everything?

    http://support.apple.com/kb/HT1274
    If running Lion:
    http://www.cultofmac.com/111456/discover-the-hidden-password-reset-tool-in-lion- os-x-tips/

  • I forgot my sign in password

    I am not able to log into my computer because I can't remember my password

    AFAICT, that article doesn't apply to Lion. For the OP, see http://www.cultofmac.com/111456/discover-the-hidden-password-reset-tool-in-lion- os-x-tips/

  • SSO and external applications

    Hello folks,
    Due to my inexperience with PS6, I'm looking for some high-level outline that will help me look in the right places and understand things better here.
    I have an external application that requires authentication via a web form (or by attaching the username and password on the URL as parameters).
    What I want to do is have a channel of this application and utilize information from the SSO mechanism to redirect the request to that remote app and provide the credentials for a transparent login.
    From what I understand this can be done by having a servlet in that channel to retrieve the credentials of the user for that remote application from the SSO and then redirect to the external application, attaching the credentials to the URL.
    Is the above correct? I would appreciate any pointers or considerations since my experience with PS is minimal.
    Thanks in advance,
    Manos

    I don't see a way to that servlet to retrieve a password for the user - it's not stored in the session.
    There are following options:
    1. OpenText LiveLink way: You have some "hidden" password for every user (based on user's ID and a shared key) known only to your server and this servlet. Servlet will supply this password.
    2. Normal way - web server: Implement login module to this application, which will trust REMOTE_USER variable provided by the agent on the web server.
    3. Normal way - standalone app: Implement login module to this application which will validate DSAME session cookie on the DSAME server. You can use example code in the SUNWam/samples/ of your server.

  • Set up printer connected to Time Capsule via USB and print without WiFi

    Is there any way to do this? We use a Time Capsule for daily backups, for both Mac and PCs, and have a printer that we would like to share between all of them. Before, we had the printer connected to a PC as this allowed both PCs and Macs to print to it, but of course the PC had to be on. For whatever reason, when we plugged the printer into a Mac, the PCs couldn't connect or print.
    From what Apple has told me, I have two options:
    1. Share the printer via WAN, which is not desirable, as any other office could then print to our printer.
    2. Create a hidden, password-protected, wireless network. This causes problems for two reasons. Firstly, we are not permitted to "extend" the network, and by creating a wireless network and attaching it onto the ethernet network, we are basically doing that. Secondly, if we did create this wireless network, computers that connected to the network to be able to see the printer would then default to the wireless network for internet access, rather than the ethernet connection.
    If I am misunderstanding something, or someone has an idea of how to password protect a printer connected to a Time Capsule without using wifi, I would greatly appreciate it.

    Sharing via WAN through the Time Capsule, for whatever reason, is not password protected. Any computer in our building can see the printer, and use it. When we were sharing the printer through the PC / Bonjour, when setting up the printer on a new machine, a valid username and password from the connected PC was required.
    I should add that the purpose of trying to share this via the Time Capsule, rather than the PC, is that the Time Capsule is always on, and we notice an increase in performance when the PCs are powered down regularly.

Maybe you are looking for

  • H.263 Dimensions are Wrong

    Hi folks. I am implementing a system which translates exported iMovie videos to Flash FLV files for Internet placement. Fun stuff. I've been having some issues with files not having the right dimensions. I export from iMovie at 320x240. CD_ROM as a q

  • Compressing dimensions issue

    i am trying to crop in compressor the frame size to 25%. it works fine and when i bring it in to final cut on my viewer it is great bu when i drop it into the time line it is coming in at 400%. it is a sequence conflict but the sequence setting and t

  • InDesign Crashes when I save

    When saving Indesign CC it crashes. Suggestions?

  • What's all the fuss about iOS6 maps???

    For starters, I'm not an iFan... My first smartphone was a BB and I used to swear by it. I found (and sometimes still do) that the iPhone was more of a toy while the BB was a professional tool. I still prefer the BB Bold's keyboard for typing emails

  • How to get terminate status and number of all steps executed in Teststand

    Hi ! Could someone teach me,pls? 1. Query:     How can i get the sequence status of Terminated?     Aim:     I want to Terminate  sequence execution while something wrong happened, then i want to aquire the Terminated Staus.     My action:     i add