# How many iterations use Storj for PBKDF2 when we create Keys for CLI to use end to end encryption?

**URL:** <https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545>\
**Category:** Developer Discussions\
**Created:** [February 23, 2023, 5:07pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545 "2023-02-23T17:07:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon16730638](https://storj.bcdn.literatehosting.com/letter_avatar/anon16730638/32/6_449c533f586939b6e5f246632a46421f.png) [@anon16730638](https://forum.storj.io/u/anon16730638)\
**Post date:** [February 23, 2023, 5:07pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/1 "2023-02-23T17:07:59Z")

</div>

Hello, recent security issues of a well-known online password manager: LastPass have highlighted that 100,000 iterations for PBKDF2 are obsolete now they recommend 600,000 [How do I change my password iterations for LastPass? - LastPass Support](https://support.lastpass.com/help/how-do-i-change-my-password-iterations-for-lastpass), i have search in official Storj documentation but I couldn’t find info about this parameter can anyone tell us sometingh about this? Thanks for answer!

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [February 23, 2023, 6:16pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/2 "2023-02-23T18:16:32Z")

</div>

This seeems unrelated to Storj

---

<div class="post-metadata">

**Author:** ![anon16730638](https://storj.bcdn.literatehosting.com/letter_avatar/anon16730638/32/6_449c533f586939b6e5f246632a46421f.png) [@anon16730638](https://forum.storj.io/u/anon16730638)\
**Post date:** [February 23, 2023, 7:00pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/3 "2023-02-23T19:00:44Z")

</div>

Why do you think it’s unrelated ? maybe storj doesn’t use any functions to make passwords more secure or do you mean i have write in wrong forum’s section? In that case I apologize

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [February 23, 2023, 7:24pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/4 "2023-02-23T19:24:01Z")

</div>

Storj does not generate account passwords for the customer. It is up to the customer to make sure they use strong passwords. If they decide to use an external password generator, it is up to them to make sure that they use one that actually generates sufficiently strong passwords. Note that Storj also recommends to always use multi-factor authentication along with a strong password.

Please specify what is the specific issue you want us to address.

---

<div class="post-metadata">

**Author:** ![anon16730638](https://storj.bcdn.literatehosting.com/letter_avatar/anon16730638/32/6_449c533f586939b6e5f246632a46421f.png) [@anon16730638](https://forum.storj.io/u/anon16730638)\
**Post date:** [February 23, 2023, 7:59pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/5 "2023-02-23T19:59:30Z")

</div>

I mean when a customer uploads via CLI each file is encrypted locally using a key derived from the customer’s password set for the bucket where files are uploads , I wanted to understand if the procedure for deriving this key uses PBKDF2 function to reduce vulnerability to brute force attacks and how many iterations performs

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [February 23, 2023, 8:33pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/6 "2023-02-23T20:33:25Z")

</div>

I am not sure where you read that supposedly the encryption key is derived from the customer´s password. Please read our documentation about [how encryption is implemented](https://docs.storj.io/dcs/concepts/encryption-key/how-encryption-is-implemented) and specifically, the section on [Content and Metadata encryption](https://docs.storj.io/dcs/concepts/encryption-key/how-encryption-is-implemented#jNE5H) for details of our implementation.

---

<div class="post-metadata">

**Author:** ![anon16730638](https://storj.bcdn.literatehosting.com/letter_avatar/anon16730638/32/6_449c533f586939b6e5f246632a46421f.png) [@anon16730638](https://forum.storj.io/u/anon16730638)\
**Post date:** [February 23, 2023, 8:37pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/7 "2023-02-23T20:37:47Z")

</div>

Ok thank you for clarification i’ll read those docs

---

<div class="post-metadata">

**Author:** ![pwilloughby](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pwilloughby/32/11078_2.png) [@pwilloughby](https://forum.storj.io/u/pwilloughby)\
**Post date:** [February 23, 2023, 9:50pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/8 "2023-02-23T21:50:46Z")

</div>

If I’m understanding things correctly Argon2id and not PBKDF2 is being used for key derivation. There is more information about the design here: [storj/password-key-derivation.md at 529e3674e484df0da70654f1d3de50f6ef6455cd · storj/storj · GitHub](https://github.com/storj/storj/blob/529e3674e484df0da70654f1d3de50f6ef6455cd/docs/blueprints/password-key-derivation.md) You can inspect the code here: [common/password.go at 7591b205266e8c253f46c841f60899496889050c · storj/common · GitHub](https://github.com/storj/common/blob/7591b205266e8c253f46c841f60899496889050c/encryption/password.go#L27)

---

<div class="post-metadata">

**Author:** ![anon16730638](https://storj.bcdn.literatehosting.com/letter_avatar/anon16730638/32/6_449c533f586939b6e5f246632a46421f.png) [@anon16730638](https://forum.storj.io/u/anon16730638)\
**Post date:** [February 23, 2023, 10:14pm UTC](https://forum.storj.io/t/how-many-iterations-use-storj-for-pbkdf2-when-we-create-keys-for-cli-to-use-end-to-end-encryption/21545/9 "2023-02-23T22:14:03Z")

</div>

Thank you! This is what i’m looking for
