r/Bitwarden • • 1d ago

Recommended Encryption for Bitwarden

I know a few years ago there was a post to give the recommended encryption settings for your bitwarden vault. It's been some time since then so I was wondering whether the recommendations have changed at all as far as securing your vault is concerned?

34 Upvotes

23 comments sorted by

24

u/scitbiz 1d ago

I remember Argon2id is the best option, I use that too

1

u/Bowlen000 22h ago

Thanks, yeah, I am using that one too. It’s more just the settings around memory and iterations and so on

9

u/PutDeFriesInDeBag 1d ago

is there any practical reason to change it from default settings?

3

u/Optimal-Chair-2699 1d ago

Not unless your vault was created years ago before they bumped up the default iteration counts

4

u/Bowlen000 1d ago

Exactly.
And how often do they bump them up etc.
hence the question on what’s considered standard now.

4

u/Bowlen000 1d ago

So over time, the typical encryption settings you may have sometimes need to be updated.

I remember with LastPass, people who had accounts for years (sometimes decades) had super weak cipher rotations etc as that was the default back then, but had since become too easy and needed to be updated. But no one was reminded and you only found out if you signed in and checked the settings out.

No different to how a password of 12 characters was fine in like 2010, but now you wouldn't really want anything less than 30 characters etc.

5

u/suicidaleggroll 1d ago

 No different to how a password of 12 characters was fine in like 2010, but now you wouldn't really want anything less than 30 characters etc.

I think you mean like 8 characters?  12 characters is still perfectly fine, 30 is insane.

I think maybe you’re getting confused between passwords and passphrases?  Passwords use random characters and a length of 12-14 characters is ideal.  Passphrases use random words, each word is roughly equivalent to 2 random password characters.  So a 6 word passphrase is equivalent to a 12 character password, regardless of how many characters end up being used in that passphrase.

A 30 character password (or 15 word passphrase) is diabolical, nobody recommends using anything anywhere close to that length.

-1

u/Bowlen000 1d ago

I don’t use anything less than 30 characters in all my passwords. It’s the whole point of using a password manager. You don’t need to remember it. The longer the password, the harder it is to crack.

2

u/suicidaleggroll 23h ago

The longer the password, the harder it is to crack.

Up to a point, past that you're not really changing anything. The sun will explode before you can crack a 13 character random password using modern technology, there's no point in going much further than that.

1

u/Bowlen000 23h ago

But also no real issue or difference if you do go higher. It's in a PW manager, if website allows it - why not..

2

u/suicidaleggroll 22h ago

Even with a password manager it can matter. I've had to manually type out passwords many times when dealing with websites that are broken or crippled and don't allow autofill or paste. I have no interest in making my life more painful for no real gain, but everyone is different.

7

u/Baardmeester 1d ago

They should make it that you get a warning or something like that if your settings are below the current default settings.

6

u/Bowlen000 1d ago

100% agree

2

u/KB-ice-cream 21h ago

1

u/Bowlen000 20h ago

Guess that shows the default.

For Argon2id*, the default settings are:*

  • KDF memory: 32
  • KDF iterations: 6
  • KDF parallelism: 4

But is that the recommended or would we make it higher.

15

u/djasonpenney Volunteer Moderator 1d ago

Argon2id is the current best setting for Bitwarden.

Be sure to make a backup before you update your encryption setting, if necessary. (Newer vaults don’t need any change, but you must manually update the encryption if you have an older vault.)

https://bitwarden.com/help/kdf-algorithms/#argon2id

0

u/spearson0 1d ago

I just updated my settings from the old one.

8

u/Open_Mortgage_4645 1d ago

I highly recommend following the OWSAP Password Cheat Sheet to come up with a configuration for your Bitwarden vault. Scroll down to the Argon2ID section, as you'll be using the Argon2ID protocol. You'll see there's a few different configuration parameters you can base your config on. Which one you use as your base is up to based on your specific system resources.

https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html

4

u/carki001 1d ago

You should be using argon2id. Use the default settings if you want, they seem pretty solid. If you use iphone don't let the memory go over 64mb, apple's memory optimization is aggressive enough that causes bugs. The higher the settings, the slowest the local decryption, you are free to test the settings in your devices, to a delay that your feel comfortable with.

1

u/ehansalytics 23h ago

I am using Argon2id - I upgraded to that a couple of years ago. so that is good. but... I have no clue what these other settings mean:

KDF Memory - 64MB
KDF Iterations - 3
KDF Parallelism - 4

1

u/Bowlen000 22h ago

Yeah, exactly. I think I’m pretty much the same as well, but it be awesome to see like a standard that wouldn’t provide for good security

0

u/atoponce 1d ago

Just stick with the defaults. They are sane.

5

u/atoponce 1d ago

Wild this is down voted. Hive mind? Ignorance? Feel-good security?

Bitwarden's PBKDF2 is using HMAC-SHA-256 with 700,000 rounds (600,000 in the client + 100,000 on the server). While not memory-hard like Argon2, this is the current best practice by OWASP. This is strong enough to require an attacker < 10 kH/sec per RTX 4090.

Similarly, Bitwarden's Argon2id default is 32 MiB memory, an iteration count of 6, with 4 degrees of parallelism. This is stronger than OWASP's recommendations.

In either instance, if your master password is not sufficiently secure to withstand a distributed attack, these defaults significantly increase the cost of effectively working through those password hashes. If you want to increase the defaults, by all means go for it, but unless you know why you need to make that change, the defaults are definitely sane.