5 ms·
HalfMask - an Experiment in Password Masking
- vaksel 17y agothe whole point of masking is so that you don't give away your password when you are using a projector(giving presentations etc)...this is no different than not masking the thing at all
- modoc 17y agoWell, that's certainly part of the point, but it's also to prevent casual shoulder surfing/people walking by/etc... I guess I'd prefer to see something like how the iPhone handles it, where each char is shown for split second before being masked. It lets you see that you haven't typo'ed, and yet ensures that your whole password is never sitting on the screen.
- drcode 17y agoThe demo actually works better than you would think: Easy to read for the writer, hard to read for a shoulder surfer.
- dylanz 17y agoI still like my idea: * * * * els Where you mask every character up to the last N specified characters. I started writing this up in JQuery, but... then I stopped ;)
- kolya3 17y agoSame as the iPhone.
- _giu 17y agonice idea and nice realization, too! it works pretty good! if you can't read the password after you've typed it in, try to mark it with SHIFT + LEFT-/RIGHT-ARROW or SHIFT + HOME/END :) by the way: the guys from arc90.com cook up pretty cool things in their labs, like the greatly useful Readability bookmarklet http://lab.arc90.com/experiments/readability/ http://lab.arc90.com/experiments/readability/
- jokull 17y agoMy idea is the best: reveal on mouseover
- dylanz 17y agoYeah, I think you have a great point there :)
- Nwallins 17y agoHow about having to select the (masked) text, to take it a step further?
- blhack 17y agoIf you highlight this, it pretty much reveals what the password is. I know that isn't what you're talking about, but it is close. I know that I couldn't read this even when I knew what I was typing until I highlighted it.
- umbrae 17y agoHey guys, I'm the author of HalfMask - please let me know if you have any feedback, or you can check out the source on google code: http://code.google.com/p/halfmask/ http://code.google.com/p/halfmask/ Forking to try new things is heartily encouraged - I'd like to see new approaches to password masking.
- bcl 17y agoThe masking characters need to be more similar to the characters being typed. eg. ll is easily readable with letters like nrs, etc. in the background.
- umbrae 17y agoThis is a good thought - I had implemented character set matching (uppers to uppers, numbers, etc) before, but I worried that it made it almost too hard to read for the user. You'll notice that I'm only using lowercase letters currently - that was an intentional choice as it seemed too obscured when using a fuller character set. I'll give this another look though and see if there may be a good middle ground.
- jf 17y agoI agree, it's pretty easy to read the text if you zoom in on the field: http://skitch.com/joelf/bayjs/halfmask http://skitch.com/joelf/bayjs/halfmask
- cliffdickerson 17y agoI typed a password, It "stood out" so I had my wife see if she could read it and she couldn't. I had her type a password and I could read it no problem. once she had typed it she could read mine no problem as well. It seems once you've "seen it" it stands out. Sorry, maybe I missed something? Still cool JS trickery none the less.
- sirrocco 17y agoIf you select the text the password is clearly visible. Plus the letters I type are slimmer than the mask so I can still see the password. I say : just mask the bloody password the old fashioned way :)
- jcapote 17y agoI like what the wii and the android browser do, they show the last inputted character for a second or so
- tptacek 17y agoLet me just say, as retarded as I think this whole masking kerfluffle is, play with it or don't play with it, but if you don't mask passwords in your login box, expect to spend $10,000-$20,000 extra to your PCI auditors (and then restore password masking) when you decide to accept credit cards.
- gojomo 17y agoI don't think anyone has suggested individual sites should override the browser behavior. The interesting question is whether client software (browsers/add-ons) should offer another option. And if it did, would the Payment Card Industry auditors demand a site override the user's choices, for example by simulating a masking password field outside the default HTML widgets?
- baxter 17y agoI agree, this should be a user choice rather than site-specific. The HTML 4.01 spec doesn't dictate how passwords should be obscured, although it does suggest asterisks. I think it would be reasonable for browser vendors to provide an alternative means of obscuring passwords. If the PCI auditors aren't happy with this, and given the leniency of the HTML 4.01 spec (I haven't checked any other specs), should they take this up with the W3C?
- zackattack 17y agoWhat are PCI auditors?
- tptacek 17y agoPCI stands for "Payment Card Industry", and is a shorthand for the PCI Data Security Standards, which are a set of rules that every vendor above a certain size has to follow in order to process payments with a Visa or Mastercard. PCI auditors are people working for one of the 20-30-odd firms that are certified by Visa to audit compliance to the PCI DSS.
- deleted 17y ago
- JBiserkov 17y agoI like the idea. But how about LCD screens where the angle changes everything? Right now it's difficult to read from the side, but "a piece of cake" from above.
- ideamonk 17y agowell, the password can be copy pasted
- jwecker 17y agoThere is an argument in the whole masking argument that doesn't really have anything to do with security- it is that filling out a box and having the characters masked is a well known usability metaphor for users- implying the content should be kept hidden and implying (though it's not always true) that in the backend it is also kept secure. The metaphor comes from ATMs etc. All security aside, when the vast, vast majority of casual computer users finally have a computer metaphor nailed down it's usually very counterproductive to try to change it. Like trying to move the "File" menu to the far right of the menu bar for your next desktop app...
- chaosmachine 17y agoNice try, but I think this is the worst of both worlds. Still insecure in many situations (screencasts, presentations, or any time you might be recorded), and it's harder to character count than normal asterisks.
- nirmal 17y agoI modified his code to do the iPhone style masking. It masks everything except the last character. Demo page is unmodified. You can see it here: http://nirmalpatel.com/hacks/halfmask/demo.html http://nirmalpatel.com/hacks/halfmask/demo.html and a diff of the code: http://nirmalpatel.com/hacks/halfmask/jquery.halfmask.js.diff http://nirmalpatel.com/hacks/halfmask/jquery.halfmask.js.dif...
- baxter 17y agoI like that, but it would make more sense if backspacing through a password didn't reveal each letter.
- TweedHeads 17y agoIn the comfort of my privacy I want to see what I am typing. There is nobody shoulder surfing, no cameras recording me. A check box for unmasking will suffice. Cool hack nonetheless.
- TravisLS 17y agoMy main issue with this solution is that it takes the decision out of the user's hands. Granted, in some cases it is potentially beneficial to unmask the password, but I would not want a site to assume that I'm okay with this approach. Imagine if you have to type in a password presenting in front of a crowd of 100 people. Do you feel secure with this solution? Whatever solution you implement, it's important to give the user explicit control to override the mask.
- ahoyhere 17y agoVery clever, and I love Readability, but I don't think this one's necessary. :) On our signup for our time tracking app, Freckle (http://letsfreckle.com http://letsfreckle.com), we just left the password fields clear. Number of signups: >4000. Number of people who complained: 4. Number of people who wrote nice things: 15. Translation: people like it, but it's not really remarkable. (And we did it 6 mos before the Man Who Would Be King wrote about this idea.)