Slashdot Mirror


Ask Slashdot: How Do You Create A Highly-Secure Password? (securitymagazine.com)

An anonymous reader writes: A security lab at Carnegie Mellon performed a study on password security recently, and issued a warning about common user misconceptions. For example, 'ieatkale88' would require 4 billion more guesses than 'iloveyou', because 'iloveyou' is one of the most common strings in passwords. And the word 'pAsswOrd' would take 4,000 times more guesses than 'p@ssw0rd', simply because "In modern day password-cracking tools, replacing letters with numbers or symbols is predictable."

But then what passwords are secure in the face of these modern password-cracking tools? As professionals in the IT industry, what advice would you give?

Leave your answers in the comments. How do you create a highly-secure password?

70 of 637 comments (clear)

  1. Generators by Anonymous Coward · · Score: 4, Informative

    https://www.random.org/passwords/

    With a length of at least 10, preferably 20 or more.

    1. Re:Generators by Anonymous Coward · · Score: 5, Funny

      Everyone knows that hunter2 is the best password

    2. Re:Generators by FatdogHaiku · · Score: 4, Informative

      No, it's correcthorsebatterystaple...
      https://xkcd.com/936/
      No one would ever guess that.

      --
      You have the right to remain sentient. If you give up the right to remain sentient, you will be elected to public office
    3. Re:Generators by Anonymous Coward · · Score: 5, Insightful

      Being strictly paranoid, how can I be sure that all passwords generated on the above site are not logged and added to lists checked by password crackers?

    4. Re:Generators by Anonymous Coward · · Score: 2, Insightful

      Generators are definitely the way to go.

      Also good is using a password manager. I personally use LastPass, though I know there are a number of others out there. One nice thing about LastPass is that it supports 2-factor authentication and has a password generator that generates pronounceable passwords for those passwords you want to remember (such as the password to unlock the password manager).

    5. Re:Generators by marcansoft · · Score: 4, Insightful

      Length doesn't matter. What matters is that you use a unique password for everything.

      Using a unique password for everything is impractical without making your passwords random (for a secure definition of unique, i.e. you can't guess one password given another one). But once you make them random, it doesn't matter how long they are as long as they're at least 6 (if fully random), preferably 8 (if constrained) characters or so.

      Why? Because your password doesn't have to withstand an offline brute-force attack. It has to withstand an online, over-the-network brute-force attack. If the attacker gets your password hash such that they can use an offline attack, they have already broken into that service and have all your data anyway. And, since you use different password everywhere, cracking your password on that service gets them nothing.

      Passphrases used to directly generate or wrap encryption keys are the exception to this, of course. Those had better be long.

      Me? I use a pwgen-generated password on all sites/services, with the defaults (8 characters, pronounceable), and write them down in an encrypted password file. It's great, because I end up easily remembering the ones I use often, and the rest I look up as I need them. Can you crack those offline? Absolutely. But I couldn't care less; if you already have the hash, there's nothing more you get by cracking it.

    6. Re: Generators by jawtheshark · · Score: 2
      I have done this too, but let's be realistic. Since we know this, we can assume password crackers know this. Furthermore md5 is quick. So once they have a list of common-ish passwords, it becomes a matter of trying also md5(common_password), which exactly 1 pass more to test. That is basically not much added complexity. If more people start doing this, that extra pass will become worth it.

      Now, brute forcing an md5-based password is unlikely, with 16^32 different combinations (16 characters, 32 positions), but that's not what is being done.

      --
      Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
    7. Re: Generators by thegarbz · · Score: 2

      We're assuming too much. We're assuming that password crackers are doing dictionary attacks, dictionary attacks using multiple words, dictionary attacks using multiple words with capital substitutions, dictionary attacks using multiple words with numeric substitutions, and now dictionary attacks to md5 conversions.

      We're very quickly getting to the point where your dictionary attacking password list is longer than the brute force for a typical 8 character password. With all these scenarios at some point we need to realise that if everyone's nightmare (but the hackers know this) scenario plays out, we'll still be damn secure.

    8. Re: Generators by jawtheshark · · Score: 2
      Have you got any maths to back that up? Assume 64 valid chars ([a-zA-z0-9_-] over 8 positions, that means 64^8 combinations, which is about 2.8*10^14 combinations 280 trillion combinations.

      According to WolframAlpha, there are about 1 million words in the English language. So, each word in the English language should generate 280 million new combinations based upon the patterns we tend to use. Colour me highly sceptical about that. I might be wrong, my maths are a bit rusty and I'm not all that much into password cracking. So, I am open to arguments showing that my thinking is flawed.

      --
      Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
    9. Re: Generators by jawtheshark · · Score: 2

      Ah, ok... I see... "brute force typical 8 char password", is what you mean. Sorry for the lapsus in my understanding because "brute force" does have a special kind of meaning to me, so I focussed on the combinatorics and assumed a random password. You mean, employ statistical analysis on typical non-random 8 char passwords. Yes, definitely, that will work.

      --
      Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
    10. Re: Generators by tburkhol · · Score: 2

      According to WolframAlpha, there are about 1 million words in the English language.

      Most people have a working vocabulary of about 3000 words. They can generally recognize or decipher many more, but if asked for a 'random word' will generally choose from fewer, and they'll often have some syntactic connection (eg, adjective-noun). 3 truly random words may have 2^57 possibilities, but 3 words you choose yourself are closer to 2^30. That's about 5 characters.

    11. Re:Generators by stealth_finger · · Score: 4, Informative

      Everyone got, it stopped being amusing years ago.

      --
      Wanna buy a shirt?
      https://www.redbubble.com/people/stealthfinger/shop?asc=u
    12. Re:Generators by rcharbon · · Score: 2

      Now if only services didn't force us to use symbols and numerals in our passwords, we'd be all set.

    13. Re:Generators by cyclomedia · · Score: 2

      Why is writing it down so bad? Specifically if these are your personal logins and they're in a little black book in a drawer in your house. Aren't they MORE secure, because no amount of remote hacking can read ink off a piece of paper? And if $thief has broken into your house, they're not going to go looking for said little black book - they're going to grab a laptop and a DSLR and get out.

      --
      If you don't risk failure you don't risk success.
    14. Re:Generators by njnnja · · Score: 4, Informative

      I was actually just speaking with a police officer the other day who said criminals don't care much about electronics nowadays because the stuff depreciates so fast if you have a 4 year old laptop it's not worth much after depreciation and the black market discount. Even dumb thieves know to go straight for the bedroom and take the women's jewelry and the men's watches. They also check the top drawer for cash. But yeah, unless you are a high value target for information, nobody is rummaging through your desk for sticky notes.

    15. Re:Generators by mlts · · Score: 2

      Next to keyfile hashes, I am personally partial to KeePass's generator, as it allows you to have custom password formatting and rules, as well as to allow keyboard/mouse input to be added to the randomness pool. This definitely cannot hurt when it comes to unpredictability.

    16. Re: Generators by nasch · · Score: 2

      Those sorts of things are the most commonly used passwords.

      https://www.skyhighnetworks.co...

    17. Re: Generators by Lije+Baley · · Score: 4, Funny

      If you wrap your fingers in tin foil before you type, you will be safe.

      --
      Strange things are afoot at the Circle-K.
    18. Re:Generators by dpidcoe · · Score: 2

      actually don't generate a unique password for everything. managing them is difficult time consuming, and ultimately useless.

      It doesn't have to be. Use a random password generator to generate something of sufficient length (let's say 6 characters since 8 character minimum is generally a requirement and the next step will put it over the limit). Memorize that random password, use it as the base for everything, but mix in something unique to the website or service using a rule that you can apply consistently.

      As a simple example, say I generate uYc2!c as my base password. I might decide to apply the first initial of the site to the beginning of it and the second initial to the end. That would make suYc2!cd my slashdot password, guYc2!cm my gmail password, and auYc2!ct my AT&T account password. If I were to find out I'd registered an account on a given site and completely forgotten about it, I could likely guess my password in less than 3 tries assuming the site name didn't change. If someone were to obtain one of the passwords, the others aren't immediately guessable since it looks like you just used a random generator. Though you're in trouble if they get two (not that far-fetched someone could correlate email addresses for sites you made junk registrations on that then got hacked) and decide to sit and think about it for a bit. That can be mitigated somewhat by making the rule you use to modify it more complex (e.g. something that changes the contents of the "base" password), or having a handful of different "base" passwords you use according to the importance of that particular account.

    19. Re:Generators by bigdavex · · Score: 3, Funny

      Length doesn't matter

      Right, password girth is the key.

      --
      -Dave
  2. Password Generator by CastrTroy · · Score: 4, Insightful

    20 character random password generated by KeePass. I have a fairly long 20+ character master password for my password file. Generate a new password for every site in case of a breach. Use 2-Factor authentication wherever possible, especially your email address is this is basically a master key to all your other accounts due to the password reset feature.

    --

    Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    1. Re:Password Generator by ravenshrike · · Score: 2

      Yet pretty much every plan does come with a couple of hundred texts. If you're hitting the limit often enough that 2FA for new devices will kick you over the limit, either you have WAYYYYY too many devices requiring a password or you should probably pony up the $10 extra a month for unlimited texts. If you need the security of 2FA for every login, what the fuck are you doing that doesn't make you enough money to get a proper phone plan?

    2. Re:Password Generator by thegarbz · · Score: 3, Insightful

      Dear god!

      How about use a common easy password for things you don't give a shit about, use a more complicated password for things you do, and reserve your super complicated passwords for things like your banking / email.

      We're slowly getting to the stage where a typical day will be spent managing passwords rather than accessing content with them.

    3. Re:Password Generator by jafiwam · · Score: 2

      20 character random password generated by KeePass. I have a fairly long 20+ character master password for my password file. Generate a new password for every site in case of a breach. Use 2-Factor authentication wherever possible, especially your email address is this is basically a master key to all your other accounts due to the password reset feature.

      Why bother? Just make it 20 characters you make up.

      Because, you are going to run into "helpful password strength monitors" that want "at least one capital, one lower case, one number and one punctuation character". But which ALSO have a bunch of non-stated rules like "must not have three of the same characters in a row" and "must not begin with punctuation or ";" " and so on.... and you'll still have to search your generated password to remove or change it to suit the dumb JavaScript applet. Or worse, "must not contain words" when it sees "cat" in there somewhere.

      Half the time, the service itself prevents using good passwords.

    4. Re:Password Generator by AmiMoJo · · Score: 4, Insightful

      No need for SMS messages any more. 2FA via an app is a much better option. There is even an open standard for it (RFC 6238). I use Google Authenticator, but others are available. It doesn't even need internet access, it's time based. Every 30 seconds it generates a new code for each service you add to it.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  3. GUID by Frosty+Piss · · Score: 4, Insightful

    All of my passwords are 32 char random strings using all the available chars.

    The only drawback is that I have to write them down on a yellow sticky.

    Fortunately, none of the hackers have physical access to my collection of yellow stickies...

    --
    If you want news from today, you have to come back tomorrow.
    1. Re:GUID by NotInHere · · Score: 3, Interesting

      Just don't get a household robot, otherwise it will turn itself on when you sleep and the hacker will guide it to your sticky collection.

    2. Re:GUID by PopeRatzo · · Score: 5, Funny

      All of my passwords are 32 char random strings using all the available chars.

      I just use my dog's name. Fortunately, I named my dog, "x:65=;V@Y|Dg#OdJ!T"

      --
      You are welcome on my lawn.
    3. Re:GUID by wonkey_monkey · · Score: 2

      the hacker will guide it to your sticky collection.

      Wait, what are we talking about?

      --
      systemd is Roko's Basilisk.
    4. Re:GUID by dywolf · · Score: 2

      Rule 34.

      --
      The guy who said the election was rigged won the presidency with the second-most votes.
  4. Easy. by khasim · · Score: 4, Informative

    #1. No password re-use. Ever.

    #2. Not formulaic.

    #3. Not in a dictionary list.

    #4. Long. I prefer 32 characters long.

    1. Re:Easy. by khasim · · Score: 5, Insightful

      #1. But I can't remember all those passwords.
        - use a password manager

      #2. But I like the formula I use. It's my name + the website name.
        - no. Just use a password manager

      #3. How will I know that my password isn't in a dictionary list?
        - use a password manager and have it generate random passwords

      #4. But I cannot remember long passwords.
        - use a password manager

      Also, "ieatkale88" can now be cracked in the same number of tries as "iloveyou" or "pAsswOrd" because they are now all added to common dictionaries.

      Once you publish your "secure" password someone will add it to a dictionary.

      http://arstechnica.com/security/2016/06/how-linkedins-password-sloppiness-hurts-us-all/

    2. Re:Easy. by khasim · · Score: 5, Informative

      Yeah, it matters. Unless you really are using a hash function you probably aren't as unique as you believe.

      Remember, the crackers have hundreds of millions of passwords to dig through to find patterns.

      Check haveibeenpwned.com to see if your email address has already been compromised. And if so, at how many sites.

    3. Re:Easy. by vux984 · · Score: 2

      I've been struggling with this for ages.

      And the answer is yes it does matter; even if we assumed it's not reverse engineerable.

      1) You WILL run into situations that require passwords that reject your formula. Your formula has a digit ... they don't allow a digit. Or your forumula is too long, or too short, or needs a capital letter, or can't contain a fraction of your user name or whatever.

      2) You WILL run into situations that require password rotation. And some will be smart enough to reject last months password with an incremented counter; or swapping back and forth. ;) Some will even demand high "distance" from previous passwords.

      3) You WILL run into sites that are breached.

      4) Some of these sites will use aggressive lockouts if you guess wrong. Making trying a few variations painful.

      5) Some times you will need to enter the some passwords using truly irritating input mechanisms; alternate keyboard layouts, touch screens,

      6) Some passwords need to be much more secure than others. Some passwords need to be entered much more often than others.

      Between these your basically fucked. If you have a sufficiently large pool of passwords to remember, eventually your formula will have so many exceptions that your having to remember them all is just as mentally taxing as remember random passwords.

      Ok... site A is the formula with a 12 on the end, because it needs to be changed once a month. Next month will be 13... Site B was hacked, so I can't use the formula on that one... because that password is compromised. Site C needs to use the formula but omit all the digits and special characters... etc etc...

      I have easily upwards of 200 passwords. Registrars, utilities, domains, pin numbers, service accounts, email addresses, cloud services, forums, games, etc. I still use a few mental hashes methods for some of the more common/less important that I use -- but they all go into a password manager now. Because there list of exceptions and modifications to the formula to cope with the 6 issues above combined to be nearly as overwhelming as memorizing the passwords themselves.

      So I use a password manager and that works well.

      These days i still have one major issue:
      My email address is too easy. Given its status as a password reset for other accounts it merits a strong password, that isn't easily memorized. IT has this.

      But conversely, I need to check it very regularly, from my smartphone. Entering a long cumbersome passphrase into a smartphone touchscreen 100x a day is simply not viable. I don't yet have an acceptable solution to this.

      So losing my smartphone is the weakspot. Its password protected and fingerprint protected. But those are both weaker than I'd like. But I simply cannot function with having to use TFA and long passphrases everytime i check my email.

    4. Re:Easy. by bloodhawk · · Score: 4, Insightful

      unless you run your password manager on a non internet connected stand alone machine I would say this is pretty bad advise from the majority of users. Most users simply don't have the security awareness or safe computer use habits to make a password manager secure, with drive by exploits and malware infesting everything these days putting all your eggs in one basket would be tantamount to internet suicide for many people.

    5. Re:Easy. by Tom · · Score: 4, Insightful

      #1. No password re-use. Ever.

      user-hostile

      #2. Not formulaic.

      memory-hostile (the mind loves patterns)

      #3. Not in a dictionary list.

      memory-hostile (the mind recalls the known better than the unfamiliar)

      #4. Long. I prefer 32 characters long.

      user-hostile

      Thank you for explaining in just four points why normal users think that security dudes are assholes and sabotage the rules made by them wherever they can.

      --
      Assorted stuff I do sometimes: Lemuria.org
    6. Re:Easy. by AmiMoJo · · Score: 3, Insightful

      A password manager is the best advice for most people, because the risk of it being compromised is much smaller than the risk of them using poor passwords if they don't have one.

      To get at the password manager, drive-by malware has to defeat the browser security, then defeat the OS security, and then defeat the password manager's security. That is assuming that the password manager happens to be open and the database decrypted at the time, if not then stealing that file still requires the cracker to find the master password.

      On the other hand, major and minor web sites alike regularly leak user data and passwords. Realistically users to too lazy to come up with really good passwords for every site, or to remember them, or to look through their password book for them. And if malware does get onto their computer, there are easier targets like cookies for sites they are currently logged in to and account numbers stored in documents and spreadsheets, which typically are not encrypted.

      I think you also vastly over-estimate the level of malware infestation. Chrome, the most popular browser, is actually extremely secure and so is Windows now. That's why malware has changed from mostly exploit based to mostly trojan based.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    7. Re:Easy. by Jason+Levine · · Score: 2

      I use Password Safe as my password manager. It's mainly for Windows, but there's an Android app, and appear to be Max and Linux versions as well. There's a portable version so you could use it on a USB thumb drive. The password file can be local or synced with an online source.

      --
      My sci-fi novel, Ghost Thief, is now available from Amazon.com.
  5. Use an application or OS that allows passphrases by pjbgravely · · Score: 4, Insightful

    Using a very long passphrase rather than a password is the safest thing. How is anyone going to crack "Mydogateachickenandnowisi$ickwiththegout". It is very easy to remember. You have to make sure the app/OS uses the whole thing, not just silently truncates it.

    --
    Star Trek, there maybe hope.
  6. Relevant xkcd comic by suupaabaka · · Score: 3, Insightful

    xkcd covered this a while ago.

    I use this now. Not the actual passphrase, but the principle.

    1. Re:Relevant xkcd comic by jargonburn · · Score: 2

      AhX87P! is far more secure than "Little jack horner played in the corner eating his" will ever be, even if the second one is much longer.

      I disagree with you on that point, AC.
      In the almost worst case, "Little jack horner..." (where the attacker had a LOT of specific information about how you selected your password), figure something like 30k possibilities. Again, I'm talking about your roommate or family member; someone who knows you very well.
      Truly, that's a poor contrast with the ~22 trillion possibilities of an 7-printable-characters-long password.
      On the other hand, if we're just doing a dictionary attack based on a 2,000 word (assume that manages to include the word "horner") dictionary (Oxford estimates something around 170k English words that are in use) and the attacker "knows" that the phrase is 9 words long. Then, take the ROOT of the resultant possibilities (attacker has a method that is able to cull a shit-ton of unlikely word combinations, such that phrase can be considered as having only half as many words) while IGNORING capitalization and punctuation:
      I still get 715 trillion possibilities. I could be completely wrong here, but that seems a lot better than a 7-character password.

    2. Re:Relevant xkcd comic by Selivanow · · Score: 2

      The only problem being sites that don't support passwords over X amount of characters. They suck.

      --
      -- ...trying to make digital files uncopyable is like trying to make water not wet. -Bruce Schneier
  7. SHA256. by 0100010001010011 · · Score: 4, Interesting

    echo -n "<mypassword>|<username>+example.org" | sha256sum | cut -c1-20

    Need to change all my passwords? Change the cut or my password.

    1. Re:SHA256. by Cassini2 · · Score: 2

      Go truly random:

      head -c 80 /dev/random | base64

      Grab a random sequence of characters that you think you can type reliably.

    2. Re:SHA256. by PPH · · Score: 2

      The down side to this (compared to the simple string | sha256sum | cut) is that I can't reproduce it if I forget it. I can remember my simple string and cut points.

      --
      Have gnu, will travel.
  8. Use a sentence by manu0601 · · Score: 2

    Use a sentence. This is easier to remember and way much longer than random-characters. For improved security against dictionary attacks, you can add typos.

    Example: "Little pyg, little pig, let me in!"

  9. Re:Everyone knows by Rick+Zeman · · Score: 5, Funny

    Rot13.

        For real security, use it twice.

    I'm Swede (29 characters in the alphabet.)

    ROT14.5?

  10. morse code by Anonymous Coward · · Score: 5, Funny

    It's simple. I come up with a short word. Then I translate the word into morse code, with SHIT as the the dot and FUCK as the dash. For example, HORSE becomes SHITSHITSHITSHITFUCKFUCKFUCKSHITFUCKSHITSHITSHITSHITSHIT. That's actually a very strong password.

  11. Am I the only one who uses Lastpass? by mark_reh · · Score: 3, Insightful

    The thing I don't understand is the variation in password acceptiblilty from one site to another. Some sites don't allow special characters, or only certain ones, some limit passwords to 12 characters, some 16, etc. Why on earth are there any limits to usable characters and why are any limited to less than 64 characters?

  12. Re: Use an application or OS that allows passphras by ljw1004 · · Score: 2

    I would never remember the extra "I" before the $...

  13. No One Else Uses This One. by Pauldow · · Score: 3, Funny

    I use eight asterisks as my password so I can see it when I'm typing it in.

  14. A bit of an essay... by Sarten-X · · Score: 5, Informative

    In an offline cracking scenario, the number of possibilities is what counts, not which possibility you used. That means users should have the option of simple or short passwords, but should use long ones. For ease of use (more on this later), a passphrase of several words and punctuation is appropriate. Don't mandate the use or exclusion of any particular symbols, because that reduces the search space, and similarly reduces the time to break the password. In a famous example, "correct horse battery staple" is far more resistant to brute-force attacks than something complex like "Tr0ub4dor&3".

    In an online cracking scenario, uniqueness is what counts. If an attacker has harvested your password from one location, they will try to use it to access another. Make sure every password you use is unique. Dumb tricks like appending the site name to a common password are easily caught by attackers, so they don't improve security much. The best way to mitigate the risk of an online attack, then, is use a trusted password manager to create and store your passwords, so every location has a long unique password. This is the approach I use, and most of my passwords are 24+ characters, randomly generated, and all unique.

    For universal access, I keep my password manager's encrypted database files in a cloud storage service that my phone can access. Even if that storage is compromised and my file is stolen, it's useless without my master password, which is of course different from every other password for any other purpose.

    If you're ever designing a system to handle authentication, the best solution is to not do it. Thanks to standards like OpenID and OAuth, you can connect your services to someone else's authentication, because they're far more likely to handle it correctly.

    If you must do your own authentication, use sane policies. Require long (10+ characters) passwords, but don't force numbers or symbols. Requiring a number in a password cuts the password's resistance to brute-forcing by about half (very roughly speaking, and noted in TFS). Make sure nothing in your application interferes with the use of password managers, which often use the system clipboard to copy/paste passwords. To improve user experience, avoid asking for the password at all, instead using an expiring authentication token to reinstate a previous session. The less often a user has to type their password, the less averse they'll be to having a long and secure one.

    On the back end, if you must store passwords, make sure they are hashed using a modern secure algorithm (AES-256, SHA-2 or SHA-3) and salted, and do that as soon as possible in your back-end processes. No, your users do not need a way to recover their old passwords. They need a way to reset their password to a new value, and that should only happen by using two separate forms of ID (like a phone call to customer support verbally confirming security questions and an email to the address on file). Those security questions should also be as unrestricted as passwords. Allowing the user to enter open-ended prompts allow the user to use prompts that are only meaningful to them, and are thus much more difficult to find an answer on social media.

    Above all else, do not take advice from others, including me and this post, without understanding the reasoning behind it. Computer security is steeped in several decades of little more than superstition, relying on "common knowledge" that often turns out to be incorrect. It may start out well-intentioned, but the implementation is usually missing a key detail, undermining the security of the whole system.

    --
    You do not have a moral or legal right to do absolutely anything you want.
    1. Re:A bit of an essay... by Sarten-X · · Score: 2

      You're not really wrong. In fact you're technically correct, which I have on good authority to be the best kind of correct.

      TL;DR: Using passphrases is an easy way to get a secure password, but the benefit is mostly for the human user. As long as the service doesn't require words, a word-based brute-force attack isn't really more feasible. Use a password manager, and life is easy.

      For consistency and clarity, let's first define the problem space: a fast (but not infinitely fast) offline brute-force attack against a password hash with no known lookup table. In essence, an attacker has managed to steal the password database from a service, and now wants to obtain your plaintext password with the goal of using it on that service. The site in question does not require the use of words in passwords, but does restrict passwords to the character set [a-zA-Z0-9], because I'm too lazy (and it's too late at night) to properly calculate larger sets (and I make no promises about the calculations I have done). For the sake of the example, let's also limit ourselves to the Second Edition of the Oxford English Dictionary, containing 200,000 words.

      To be certain of breaking the password, the attacker must try every possible password to produce a matching hash. Since this takes some time (not infinitely fast), a more-secure password is one that takes more guesses before finding a possible password. That means it's a problem of combinatorics.

      For the limited character set in the problem definition, we have only 62 possible characters. That means three random characters (62^3 possibilities, or 238,328) provides roughly the same security as one randomly-selected word. The example password you gave is 36 characters (and I'll ignore the difference in character set), which corresponds to 12 random words. Your random password would be roughly equivalent to a twelve-word string, requiring 3*10^64 guesses to exhaust the search space. At one quintillion guesses per second, which I believe is the current rate of Bitcoin miners, that search will take roughly 10^39 years to execute.

      However, this analysis so far has glossed over one detail of the attack definition: the attacker doesn't know that the password is words. To reliably break a word-based passphrase, the attacker has to guess everything as though it were random characters. Even though a 36-character passphrase may only contain 6 words (4*10^29 possibilities of just words, broken in 10^11 years), it would still take the same 3*10^64 guesses to be certain of breaking the password. This is why it is important that a system allows complex passwords, but does not require it. If we required the password to be words, the search space would be greatly reduced, without any change to the password itself. Similarly, this is the basis for my earlier comment regarding requiring numbers. If an attacker knows that there must be a number in a password, he only needs to guess passwords that have numbers.

      In a pure mathematics sense, it boils down to entropy. The more entropy a password has, the more patterns a brute-force attacker needs to try, and the more guesses it will need. Actually computing entropy is hard, but the simple rules of thumb are that requirements reduce entropy, while options increase it. The possibility that a password is a long string of words is an option, just like it's an option to have a string of random characters one third as long. As long as both are options, the brute-force attack cannot be optimized.

      Now we come to the more difficult part of the analysis: reality. If we expand outside the earlier problem scope, we find that all passwords currently discussed have one common flaw. They're all used by humans. A string of six random words is pretty easy to memorize, but 36 random characters is not. That leads to people writing down passwords, or storing them insecurely electronically. If the attack can include a physical breach or malware on the user's computer, the brute-force attack can be avoided completely.

      --
      You do not have a moral or legal right to do absolutely anything you want.
    2. Re:A bit of an essay... by serviscope_minor · · Score: 2

      Another nice trick is (if it's a website):

      Load the page in firefox.
      Open about:config in a new tab
      Search for "clipboard"
      Disable clipboard events.

      After that, firefox won't pass clipboard events to Javascript to fuck with, so copy/paste is restored to input fields. You'll need to re-enable it though if you want to use something like google docs, since that does rely on overriding copy/paste for legitimate reasons.

      --
      SJW n. One who posts facts.
    3. Re:A bit of an essay... by hebcal · · Score: 2

      On the back end, if you must store passwords, make sure they are hashed using a modern secure algorithm (AES-256, SHA-2 or SHA-3) and salted, and do that as soon as possible in your back-end processes. No, your users do not need a way to recover >

      No. Use one of

      • PBKDF2
      • bcrypt
      • scrypt

      instead. See: http://security.stackexchange....

  15. secure passowrd? stop using 1 factor by DaEMoN128 · · Score: 2

    The longer the password req, the harder it is for normal users to remember them. I keep a 30 ish character password for my real accounts. I see folks having trouble with 14 characters.. writing down hints, doing keyboard runs, reusing passwords all over the place. How bout we stop using 1 factor authentication (something you know, 2x in normal logins) and kick it up to 2 or 3.. Say go to a smart card with identity certs on them and a pin, or a token, pin, biometric combo?

    --
    Stop signs are only Suggestions
  16. Re:Use lots of non-standard characters with accent by DES · · Score: 2

    Don't use accented characters, or anything outside ASCII. You don't know how they will be encoded and transmitted.

    (And don't say “UTF-8”, because a *shitload* of software still doesn't handle character encodings correctly. You can rely on your browser to do so, and maybe on the site's HTTP server, but you have no idea what sort of yahoo wrote the backend.)

  17. Poetry by Space+cowboy · · Score: 3, Interesting

    So one of the (at the time) drawbacks of my UK education was that we had to learn poems off by heart for the English Lit. exam. At the time I thought it was just about the most boring part of the curriculum, but now they're a treasure trove of password sources...

    Example (no, I don't use this one). One of the poems we had to learn was "Dulce Et Decorum Est"...


    Bent double, like old beggars under sacks,
    Knock-kneed, coughing like hags, we cursed through sludge,
    Till on the haunting flares we turned our backs
    And towards our distant rest began to trudge.
    Men marched asleep. Many had lost their boots
    But limped on, blood-shod. All went lame; all blind;
    Drunk with fatigue; deaf even to the hoots
    Of tired, outstripped Five-Nines that dropped behind.
    Gas! Gas! Quick, boys! – An ecstasy of fumbling,
    Fitting the clumsy helmets just in time;
    But someone still was yelling out and stumbling,
    And flound'ring like a man in fire or lime . . .
    Dim, through the misty panes and thick green light,
    As under a green sea, I saw him drowning.
    In all my dreams, before my helpless sight,
    He plunges at me, guttering, choking, drowning.
    If in some smothering dreams you too could pace
    Behind the wagon that we flung him in,
    And watch the white eyes writhing in his face,
    His hanging face, like a devil's sick of sin;
    If you could hear, at every jolt, the blood
    Come gargling from the froth-corrupted lungs,
    Obscene as cancer, bitter as the cud
    Of vile, incurable sores on innocent tongues,
    My friend, you would not tell with such high zest
    To children ardent for some desperate glory,
    The old Lie; Dulce et Decorum est
    Pro patria mori.

    "The old lie" being "It is a great and glorious thing to die in the service of one's country". Anyway, take the N'th character of every line - easiest is the first, until you get the number of characters you need. It's easy to remember if you know the poem, it gives you a completely unintelligible password, and it's easy to make a password hint that's opaque to pretty much everyone but you.

    Has worked for me for ages. (I'm very old, compared to you yound whippersnappers hanging around /. recently).

    Simon

    --
    Physicists get Hadrons!
  18. Re:Everyone knows by Skewray · · Score: 2

    If it has to be something you can remember, then some examples are substitution cyphers (eg, rot13, but more complex substitutions work better), keyboard patterns, interleaving two words, spelling backwards, mixing two languages, &c. For example, a substitution cypher of the keyboard key up and to the left moves Password to ")qww294e". Tough choice for mobile, though. Interleave: mybank -> "m!y@b#a$n%k^". Now go make up your own.

  19. dog and kids by clovis · · Score: 4, Funny

    What I find is the hardest part about changing passwords is getting my kids and dog to accept their new names.

  20. Re:Easy if you are bilingual - Transliterate by fibonacci8 · · Score: 2

    Even better, just use Welsh, then no one will ever be able to guess your password.

    --
    Inheritance is the sincerest form of nepotism.
  21. Re:phonetic alphabet by dgatwood · · Score: 2

    Cool. I did the same thing. Mine's Papa Alfa Sierra Sierra Whiskey Oscar Romeo Delta.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  22. The Bigger Question by ytene · · Score: 4, Interesting

    Is there a more interesting question to ask here?

    Have we reached the point where the concept of the password itself is no longer either appropriate, or adequately secure? For example, should we be recommending use of multi-factor and/or multi-channel solutions?

    A useful question to ask is, "Where do you have to place your trust?" For example, many respondents to this thread recommend using a password manager.cOK, but how many of those people are aware of the emergence of specific threats targeting password managers, or that some solutions have been found to be insecure? How many people come to rely more and more heavily on a smartphone or similar personal device - a single object that can give access to web, email and voice authentication vectors - yet which is one of the most heavily-targeted platforms from a threat perspective?

    I am not trying to denigrate the many excellent answers given here, but I wish to point out the risk that we are taking by asking this as a closed question ("How do you create a highly-secure password?") when changing the question slightly (for example, to "What are the most pragmatic and reliable secure authentication mechanisms available?").

    As technology consumers, maybe we should be a bit more demanding about the solutions we are offered. Maybe it would be nice if we had a trustworthy and independent third party that offered a security audit rating system for commonly used service providers, like banks? This alone would drive down a lot of the risk, because to so e extent breaches can be facilitated by bad practices on the part of the service providers...

    But other options could consider available variation on the themes of something you have, something you are and something you know. Services should allow us to set our security based on a selection of two or more of that trinity, with a range of options for each... Here's a bad example... Suppose that the fingerprint reader on new Apple iDevices had an exposed API. Then suppose that a web site authentication engine integrated with this, over a secure SSL channel. You go to the site, you tap the option for fingerprint reader, then you put your pinky on the sensor.... What would it take to engineer that securely? In a combination with even the most basic of known passwords, wouldn't that be much more secure?

    Or what about something you have? How many people drive a vehicle with a remote control unlock mechanism? One German manufacturer uses a supposedly very secure rotating key mechanism that never sends the same release code twice... What if we used the same principle and allowed people to connect their car key to their keyboard via Bluetooth, using the same or similar principle to integrate an everyday object like a car key as a "something you have" factor?

    Both of these are spur-of-the-moment suggestions and likely flawed, but I just wanted to push us past the idea that the right solution is still a password. Respectfully, that's still only single-factor and thus still implicitly weak.

  23. lies and statistics by Tom · · Score: 5, Insightful

    The first thing you need to do is stop listening to statistics someone else faked.

    Of all the various ways in which attackers can gain passwords, only two involve cracking them (brute-force and cracking a password database). One of them should be a non-issue, because any software or service that doesn't protect against brute-force is fundamentally broken and shouldn't be trusted with your password anyway. Make your password "a", save everyone the trouble. For a password database crack, firstly the security of the server already failed, and then you're at their mercy a second time because if the password is stored unencrypted, you're fucked. If the password is stored hashed but not salted, you are pretty much fucked. And if the password is properly hashed and salted, congratulations you have the one scenario where a good password actually matters.

    In all other attacks on your password, from phishing to shoulder-surfing and keyloggers, it doesn't matter how good your password is, how long it is or how complex it is.

    So, if you are really so concerned about the one scenario that you are ready to type V9AnKH5Crpfukuy5gAFB till the end of your days, go to https://www.random.org/passwor... and fire it up. Because all the hints you find on making a "good" password are also known to the people writing password crackers and coded into the pertubation algorithms. True randomness is your best bet.

    The one thing that matters, and there's an article about it but I'm too lazy to google it, is length. Length > Complexity. "aaaaaaaaaaaaaaa" is more secure than any variation of 8 characters ever will be, simply because, at least until this post, no password cracker would run the chain like a, aa, aaa, aaaa, ... to arbitrary length.

    IMHO, and I am an expert in the field and given speeches about password security, forget all the "password complexity" rules, they are all bullshit. They're the safety net that makes sure that "password" is not a legal password on your system. But the world continuously invents better idiots, so "password1!" is and you're fucked anyway.

    --
    Assorted stuff I do sometimes: Lemuria.org
  24. Re:Two-factor authentication by serviscope_minor · · Score: 2

    Ugh no.

    Sure if security matters then fine do things properly.

    But probably 90% of my passwords are for things I have a very hard job caring about security for, for example the password that lets me get crappy support from Texas Instruments. I keep those passwords in an unencrypted file in my home directory. If someone (a) steals my computer, (b) starts opening obtusely named files and (c) doesn't die of utter boredom, they can use my password to post fake support queries about chips and then deal with the crappy replies. For reference, Linear do support by email and are excellent at it. I always look for Linear chips first now.

    2FA would make such things even more irritating than they already are.

    There are many problems with security. One is using excessive security when an email address + captcha would be sufficient.

    --
    SJW n. One who posts facts.
  25. Re:I use email format by EmagGeek · · Score: 2

    THIS.

    My observation has been for the past couple of years that there is no longer such thing as a strong password. Not because people don't create strong passwords, but because of weak password recovery tools.

    "Security" questions are probably the worst way to protect the password reset process, because the answers to typical security questions can easily be found on social media, or worse, in the public record.

    For example, "what city were you married in?" That's public record, and anybody can do a marriage license search and determine the location where you were married.

    It is good practice to use more passwords as the answers to security questions, instead of the actual answers.

  26. Re:CLI or die by suso · · Score: 2

    The first one is very bad, the second one is, well, kind of overkill.

    Please switch %s on the first one (seconds from the epoch which is not very random) with %N, which is the nanosecond only part of the current time and is for all intents and purposes completely random if you run the command by hand.

    Using %N is not much better as its only a billion possible values. The problem is that people try to be clever. I've seen countless "clever" ways of trying to generate seemingly random data, but the problem with most of them is that their set of possible values is not high enough. Set size is an important characteristic for the random input for password generation.

  27. Leet speak is not pattern recognition. Non-diction by raymorris · · Score: 3, Informative

    > Our ability to remember long passwords is limited without context or patterns.

    Certainly true.

    > A computer's ability to recognize patterns is however insanely difficult.

    "pOs5IbL3" is not pattern recognition, and it is used by common cracking tools. The rules are well known - 3 is interchangeable with E, 0 for O, and 5 for S. Bad guys do those substitutions.

    Mainly what it comes down to when choosing passwords is length. Add a few extra characters to the alphabet, using 0,3, and 5 as letters, is fine and all, but you get more bits of entropy by making your password a character or two longer.

    To create long passwords that one can remember, a sequence of words is good, but of course attackers have dictionaries. One option to improve it, therefore, is non-dictionary words like unjoyfully, runnableness, or happify (make happy). A sequence of such non-words can be easy to remember and hard to crack.

  28. Password Safe by ElizabethGreene · · Score: 3, Informative

    Password Safe >> New Entry >> [type url] >> [Default Username] >> Generate Password >> Save

    I never type it, not even once.

  29. just find the hackers' passwords, use them by swschrad · · Score: 2

    oh, wait, you said how do "I" create a secure password. never mind. I just use CowboyNeal's.

    --
    if this is supposed to be a new economy, how come they still want my old fashioned money?