Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4093420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:36:58+00:00 2026-05-20T19:36:58+00:00

When typing a passphrase like yeast bulk seize is shows pain everybody can hear

  • 0

When typing a passphrase like

yeast bulk seize is shows pain

everybody can hear tapping the space bar, so it seems logical to display the spaces in the password field, too. So I’d like something capable of showing

***** **** ***** ** ***** ****

instead of

******************************

This would make typing easier while hardly decreasing the security.


UPDATE

Think twice before you update Riduidel’s comment. When Bruce Schneier writes "It’s time to show most passwords in clear text", then showing a small part of it must be correct, too. Especially showing a part which may get captured simply by listening.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:36:59+00:00Added an answer on May 20, 2026 at 7:36 pm

    Here’s a variation that uses setEchoChar() to make the password visible for a predefined time: three seconds for example.

    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JPasswordField;
    import javax.swing.Timer;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    
    /** @see http://stackoverflow.com/questions/5339702 */
    public class PasswordTest {
    
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGui();
                }
            });
        }
    
        private static void createAndShowGui() {
            JFrame jf = new JFrame("Test Password");
            JPasswordField jpwd = new JPasswordField();
            TimedPasswordListener tpl = new TimedPasswordListener(jpwd);
            jpwd.getDocument().addDocumentListener(tpl);
            jf.add(jpwd);
            jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            jf.setLocationRelativeTo(null);
            jf.pack();
            jf.setVisible(true);
        }
    }
    
    class TimedPasswordListener implements DocumentListener, ActionListener {
    
        private Timer timer = new Timer(3000, this);
        private char echoChar;
        private JPasswordField pwf;
    
        public TimedPasswordListener(JPasswordField jp) {
            pwf = jp;
            timer.setRepeats(false);
        }
    
        public void insertUpdate(DocumentEvent e) {
            showText(e);
        }
    
        public void removeUpdate(DocumentEvent e) {
            showText(e);
        }
    
        public void changedUpdate(DocumentEvent e) {}
    
        public void showText(DocumentEvent e) {
            if (0 != pwf.getEchoChar()) {
                echoChar = pwf.getEchoChar();
            }
            pwf.setEchoChar((char) 0);
            timer.restart();
        }
    
        public void actionPerformed(ActionEvent e) {
            pwf.setEchoChar(echoChar);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I start typing stackov.. in Chrome I can see something like 'Press Tab
When Strong typing an Assembly in .net, I can create the keypair (private) like
Predictive typing is a handy feature on many mobile phones. How would/can you implement
Typing on iPhone is tedious; I'd like to prompt my users for their email
When typing into a <input type=text> field I would like to precheck every entered
When user start typing in their username in textBox field, a dropdown list shows
Can someone explain dependent typing to me? I have little experience in Haskell, Cayenne,
As I am typing code, I would like to get the symbol before and
Whenever I'm typing programming keywords in vim they get specific colors. I'd like to
Want to write a typing test application (GUI, windows). Is simple terms. app shows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.