Are you using passphrases? Is it worth it?

Nowadays, most people use password managers (hopefully). However, there are still some passwords that you need to memorize, like master password (for a password manager), phone lock, wifi password, etc.

Security wise, can passphrase reach the strength of a good password without getting so long that it defeats the purpose of even using it?

deranger, (edited )

can passphrase reach the strength of a good password

Relevant xkcd: xkcd.com/936/

I’d love to hear from someone well versed in security if this is legit or significant weaknesses exist, but the math seems to check out as far as I can tell.

CorrodedCranium,
@CorrodedCranium@leminal.space avatar

deleted_by_author

  • Loading...
  • 4am,

    If your services are storing passwords properly with a salt, dictionary attacks (including rainbow tables) are just as time-consuming to perform, since the salt renders each password hash unique; even for the same passwords.

    So the same principle still stands; the longer your password, the longer to guess - as long as the encryption-at-rest is done correctly.

    saigot, (edited )

    Dictionary attacks have been around for a long time, but It’s still quite strong especially if you throw in a number.

    A fully random 8 character password has about 10^14 brute force combinations (assuming upper and lower case + the normal special characters). 4 words choosen at random from the top 3000 words (which is a very small vocabulary really) is 10^13 dictionary attack combinations, add a single number or account for variations in word style (I.e maybe don’t always use camel case) and you’ve matched the difficulty. If you use 5 words it’s 10^17 combinations.

    (This is basicly copy pasted from a comment I made earlier)

    birdcat,
    @birdcat@lemmy.ml avatar

    i also dont really get it. the bitwarden pw tester says it will take 14 years to crack “its.a.beautiful.day”, write beautiful with 2 t`s and it will take “centuries”? 🧐

    but yes i still use them. but always with numbers and random characters in between and words from multiple languages or fantasy words.

    dzaffaires, (edited )

    That would be because the pattern on the first password are correctly spelled words and the way passwords are cracked offline (when there’s a leak of data being sold somewhere) is that they use dictionary attacks.

    This means that a big file containing all known words, and can also include known used passwords from past leaks, is used to try a lot of combinations. A combination of good words that appear 1:1 in these word lists will score way lower in terms of difficulty for a computer to crack. A simple script can add spaces and periods (like your example) between words and they WOULD get your password. By adding only one random character that doesn’t fit a pattern (just like your second ‘t’), you basically force the cracker to try all possible combinations of all characters for the length of your password, which is WAY more difficult.

    TLDR: There are more combinations of aaaaaaa, aaaaaab, aaaaaac then there are of matching words together for the same length of password (one.one, one.two, one.three)

    4am,

    In other words, don’t use “correct horse battery staple” because that’s probably in every word list by now

    birdcat, (edited )
    @birdcat@lemmy.ml avatar

    but even 14 years seems long for a pharase that is said and written millions of times per day. and if those crackers can make billions of guesses per second how can they not guess both variants within minutes?

    related question. how to make a good password bettter? adding a few extra special symbols like “µ£₹” or one long word like “freshwatercrocodiletesticles”?

    luthis,

    It doesn’t matter in the slightest if you use 2FA.

    Zagorath,
    @Zagorath@aussie.zone avatar

    In the linked comic, Munroe assumes an attacker knows your method. The attacker isn’t brute forcing character-by-character, but word-by-word, with an attacker who already knows you’re using 4 random words.

    Bitrot, (edited )

    Because a hash doesn’t work like a password cracker in a movie. It can try horse, but unless it gets the whole thing correct it doesn’t know any individual part of it.

    orsetto,
    @orsetto@lemmy.dbzer0.com avatar

    My cybersecurity prof at uni showed us this xkcd during class lol

    seliaste,
    @seliaste@lemmy.blahaj.zone avatar

    Same a few days ago

    sylver_dragon,

    That’s basically a Diceware passphrase. And, it’s kinda ok. The amount of entropy is pretty significant (close to what the comic lists, if the Wikipedia article has it right). And it’s really easy to add more entropy. I often recommend passphrases to my users (I work in Cybersecurity) and use them myself. Take a sentence, with spaces, capitals and punctuation. Now throw in a few numbers for fun and stop worrying about brute force attacks, until some idiot decides unsalted MD5 is perfectly fine for storing passwords. Most such passphrases will blow right past the 4 words in that comic and are very easy to remember. Even better, make that the passphrase for your password vault (oh look a plug for KeePass). Then have the rest of your passwords all be unique, 20 character jumbles of letters, numbers, and special characters.

    Also, enable Two-Factor Authentication (2FA) wherever possible. Even if it’s just a One Time Password (OTP) sent via SMS (which is a shit way to do 2FA), that’s better than no 2FA.

    foggy, (edited )

    For what a civilian target would worry about, using sufficiently long passwords is your best defense. Complexity is barely important.

    111111111111111111111111111.1111 is an excellent password.

    Everyone should Ctrl+f their password here. But also wait the 10 minutes it’ll take to load the whole thing.

    If your pw is on this list, change it immediately.

    If it’s less than 8 chars? Change immediately. If it’s less than 10 chars? Change… Now.

    If it’s less than 14 chars, consider just making your password longer.

    This advice will save more people in its simplicity than saying more.


    Want a smidge more?

    If you’re paranoid, take a password that you think is decent, then insert it here, then use the output as your password.

    Most times, pws aren’t stored in plain text, they’re stored using that algorithm. So, if your password is ‘password’, hackers night easily be able to see that your passwords encrypted value is exactly what that link will output if you put in ‘password’. If your password is on that huge list from the beginning of the post, they can easily decrypt the encrypted password, because these passwords’s hashes are known.

    So, use the hash itself as a password.

    Hell, throw a comma at the beginning to throw it off.

    luthis,

    using sufficiently long passwords is your best defense

    No, using 2FA is your best defense, along with wise recovery questions. It matters nothing if you know someone’s password, but can’t get the 2FA code.

    foggy,

    In terms of security? Sure. We’re talking about password entropy here.

    jeffw,

    most people use password managers

    You don’t know many boomers, do you?

    funkajunk,

    Most people who matter

    Zagorath,
    @Zagorath@aussie.zone avatar

    Best I can find,

    According to security.org survey data, in 2021, 22% of Americans said they used a password manager, but in 2023, the percentage increased to 34% with a further 10% of users saying they use a security passkey or other physical password device.

    So in the most generous interpretation of that, just over half of people are not doing anything secure.

    sordid,

    @Wistful Why would the passphrase being long defeat the purpose of using it. That's half the purpose of using passphrases.
    Make sure to use made up words or proper nouns and put a pin in an unexpected place. That's an easy way to change it without replacing the whole passphrase

    Wistful,
    @Wistful@discuss.tchncs.de avatar

    I was thinking it would be easy to brute force if just instead of guessing character by character you do word by word…but I guess just adding one special character randomly would make it a non issue.

    luthis,

    Brute force is only a thing when either they have the password hash, or the login portal is susceptible to brute force (ie shite). Both cases are rare.

    Revan343,

    There are a lot more words than there are characters, even including special characters, so if it is actually randomly generated from a large dictionary, a passphrase is much harder to guess

    xmunk,

    I use a leetified (using my own custom flavor) passphrase as my master password - I can type it really quickly and it’s obscure as hell so I’m happy with it.

    hallettj,
    @hallettj@leminal.space avatar

    Yes, I use passphrases for stuff like my password manager, my computer login, and my disk encryption. For my login (which I type a lot) it’s four words; for occasional stuff like disk encryption it’s six. I’m sold on the argument that a passphrase is way easier to memorize compared to a comparably-secure random password.

    The number of possible passphrases is the number of words in the dictionary you use to generate passphrases raised to the power of the number of words in your passphrase (assuming a small chance of reusing the same word in a passphrase). I use this command to generate a random phrase using my stock OS word list:

    
    <span style="color:#323232;">grep -v </span><span style="color:#183691;">'[^a-z]' </span><span style="color:#323232;">$WORDLIST </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">shuf --random-source</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;">/dev/urandom </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">head -n5 </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">paste -sd </span><span style="color:#183691;">' '
    </span>
    

    grep -v ‘[^a-z]’ $WORDLIST filters out words with apostrophes or other weirdness. On my system the filtered list is 77,866 words.

    For four words, 77,866 ^ 4 ≈ 3.7 × 10^19 possible passphrases.

    Compare that to randomly-generated passwords. I’ll assume that random lowercase & uppercase letters, numbers, and symbols add up to 46 characters. The number of combinations is 46^n where n is the length of the password. A four-word passphrase is the same order of magnitude as secure as a 12-character password, which has about 9 × 10^19 possible combinations.

    I’m sure that if you make up your own passphrases instead of randomly generating them then the security is much lower.

    mlaga97,

    Very similar heuristic here, insofar as when to use passphrases and how long.

    LUKS and Bitlocker volumes get 8 words, computer logins usually get 4 words (potentially more depending on frequency/criticality of system).

    Smartcards and mobile devices do have numeric pins due to frequency of use and relative difficulty in copying those for offline attacks.

    Websites that are filled in w/ password manager get passwords get the random symbol-laden strings that ‘meet requirements’

    luthis, (edited )

    Define ‘strength’… against a dictionary attack? Brute force? Social engineering? ‘forgotten password/recovery questions’ hack? Stolen session cookie? Keyloggers?

    If you’re not aware of the above, take some time to learn about each of those things and how good security practices counter each one.

    The question is kind of like, ‘can you bake a cake?’ … probably yes, but it’s really missing a lot of essential information, like what kind of oven, what ingredients do you have, what’s your skill level, do you have arms, etc.

    Any ‘passphrase’ can be secure or insecure, depending on the other surrounding factors. 2FA solves many security weaknesses.

    Zagorath,
    @Zagorath@aussie.zone avatar

    forgotten password/recovery questions

    This is the security industry’s dirty little secret that doesn’t get talked about in public enough.

    All the excellent security on a site, including complex passwords, perfectly secure storage of a salted hash of that password, multifactor authentication using TOTP, etc., is completely moot if someone can just hit “I forgot my password” (or “I don’t have my second factor”) and bypass it by doing an email loop. You instead rely on the security of the user’s email account.

    birdcat,
    @birdcat@lemmy.ml avatar

    for email there is an easy solution. create a shared alias on addy, confirm it as your recovery email, forget the alias 👌

    scytale,

    I do. It’s worth it because there are some sites that are so outdated that their version of security is to not allow pasting (or filling in via pw manager) on password fields, so I have to manually type them in. Typing in a passphrase is easier and faster than a random string.

    electric_nan,

    Use diceware to generate a nice long nonsense passphrase, and use that for your password manager master password. Keep it written down somewhere until you are sure you’ve memorized it.

    sloppy_diffuser, (edited )

    Disk encryption, computer login, and password manager are pass phrase + random characters stored on a pin protected OnlyKey and/or Mooltipass.

    Regular passwords are just random characters up to min(max_len, 128).

    DudeDudenson,

    I found it amusing when the security team in my company sent me parts of my password in plaintext saying it was insecure (because it didn’t have special characters in it) and recommended I use a password manager

    The account is used for the ancient VPN software and all of our ssh management tools

    And windows login if you’re using windows.

    Yeah good luck using a randomly generated password that you have to type in multiple times everyday

    Djtecha,

    Isn’t the bigger issue here that they can see the plaintext password?

    DudeDudenson,

    Yeah I actually gave them shit about it and they just handwaved it away

    sylver_dragon,

    The account is used for the ancient VPN software and all of our ssh management tools

    And windows login if you’re using windows.

    If you’re using one password for all those things, you’re doing it wrong. Even if the passphrases you pick are easy to remember and type, they should be distinct.

    hedgehog,

    If it’s one “account” then it likely has only one password.

    DudeDudenson,

    That’s SSO for you

    johnjamesautobahn,

    correct horse battery staple?

    JohnnyCanuck,
    @JohnnyCanuck@lemmy.ca avatar

    All I see is “****************************?”

    What did you type?

    PhreakyByNature,

    you can go hunter2 my hunter2-ing hunter2

    Bitrot,

    This guy hunts.

    Imgonnatrythis,

    Ok, this is a reasonable community to ask. What’s a FOSS pword manager that is easy to use, reliable, likely to be around and working in 5 years, and won’t leave me feeling shit up a creek if my phone dies or I’m using a public terminal with software installation restrictions? Been a few years, but I had not found something that worked well for me.

    0xblaze,

    Bitwarden

    Cupcake1972,

    Or if you want to selfhost, use Vaultwarden (compatible with Bitwarden official clients)

    ashley,
    @ashley@discuss.tchncs.de avatar

    this, just works and very easy to use and backup if using docker.

    nix,
    @nix@merv.news avatar

    ProtonPass. They’re a company thats been around for a while now, has multiple revenue streams, and has a food track record on security and open sourcing.

    Another one is Bitwarden but iirc they only have the one revenue source although iirc its a tiny team so they dont need much

    pixelscript,

    What’s a FOSS pword manager

    There are probably more that these two out there but the two I know of that fit this bill are Bitwarden and KeePass. The latter comes in two flavors, the original KeePass that kinda looks like shit and tries to stay lean and defer niche features to plugins, and the fork KeePassXC that tries to give it a sleeker UX with more features natively baked-in. I will refer to both simply as “KeePass” for the rest of this comment.

    that is easy to use

    “Easy to use” is relative. If you’re savvy enough to know what FOSS software even is, to care about using it, and to find your way onto an experimental platform like Lemmy to ask about it, I’d say youre more than capable of handling either of the above choices with ease.

    reliable, likely to be around and working in 5 years

    I’d wager that on both Bitwarden and KeePass.

    and won’t leave me feeling shit up a creek if my phone dies or I’m using a public terminal with software installation restrictions

    Bitwarden offers free cloud hosting and a web interface. As long as you have access to a browser and an Internet connection, you have access to your Bitwarden key store.

    KeePass is offline-only and requires specialized client software to read its key store file format. Though, since all it is is a file, you can use simple and straightforward methods to make it accessible wherever you need it. Copy it to a flash drive. SCP it between devices. Put it on a cloud service like Dropbox. You have options. It’s just up to you to use them.

    Bitwarden also lets you save locally stored files and manage them like KeePass, if you’re into that.

    Honestly, since each can be made to more or less behave like the other, which one you pick largely comes down to taste. Bitwarden is more turn-key if you want cloud hosting, KeePass makes you work for it. Bitwarden is a company providing a premium service you can buy, while KeePass is a completely free project funded only by good will donations.

    I prefer KeePassXC, personally.

    captain_aggravated,
    @captain_aggravated@sh.itjust.works avatar

    I do use a password manager, and a lot of my passwords are automatically generated piles of random ASCII.

    There are of course passwords I have to key manually a lot; especially the master key of my password database. I often use pass phrases for these. The ones I have to commit to memory, or even need to key manually reading with my eyes from my database, or in the case of my Wi-Fi passwords tell to other people, I make these fairly human readable/typeable. Trying to key lFqvC3]gI~l8p2V6TvTY&p in is a pain in the ass even in a font that renders that uppercase I and lowercase L as different glyphs. Something like corrEct_horse battery staPle, well I worked in an underscore and two capitals in something I can still touch type pretty effectively. Don’t use correct horse battery staple as a password; it’s burned.

    Truck_kun,

    I do use passphrases, but I combine with randomness.

    I memorize one random 8 character string to use with something more memorable.

    Then when I need more security, or I feel that random 8 character string is no longer safe (password leak/hacked), I memorize a new 8 character string.

    Then I combine them.

    Then I memorize a new 8 character string and mix it in.

    It’s a process built up over years that ingrains into memory. Sometimes I forget the order, or if i added spaces, or did no spaces. Luckily, as long as I am sure of the discrete segments, I can remix them to recreate until it works (in a reasonable time).

    My last addition was when I made the move from Lastpass to another password manager, after their endless bad news.

    Carighan,
    @Carighan@lemmy.world avatar

    All my manual passwords are passphrases.

    This is basically based on the idea that if the password is so strong I can no longer input it, it has no inherent value anyways. A phrase makes it easier to use entire sentences as a password and readily recall them.

    Of course, these are but a minority, the rest are passkeys or passwords a manager will fill in.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • asklemmy@lemmy.ml
  • ngwrru68w68
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • ethstaker
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • osvaldo12
  • everett
  • kavyap
  • Durango
  • megavids
  • cubers
  • tester
  • GTA5RPClips
  • modclub
  • mdbf
  • cisconetworking
  • tacticalgear
  • Leos
  • normalnudes
  • anitta
  • provamag3
  • JUstTest
  • lostlight
  • All magazines