Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • thank you very much for the pointers, especially the IV one few queries(asking them out of curiousity :)) in below comment Commented Sep 24, 2015 at 16:06
  • 1. regarding PBKDF2, i didnt understand why iterations should be low in our case, will it not make easier for someone who is trying to do a bruteforce attack? (i did get the 'master key is not a password, but a long random data, so bruteforcing is fruitless' part, but what if someone tries to have a list of passwords, encrypt each and compare them with the encrypted data, surely slowness would help right) 2. is 'different derived keys' not worthy than 'same master key'? (my concern being here is - even if someone deduces a user's derived key, he would not be able to deduce others) Commented Sep 24, 2015 at 16:08
  • If someone can encrypt passwords with the "master key" then that someone has the key, and you lost. A 256-bit master key, properly generated, cannot be brute-forced. A higher iteration count only turn an utterly impossible attack into another utterly impossible attack, so there is no actual gain. Commented Sep 24, 2015 at 16:47
  • You are right, I framed my question wrong, also my understanding of the brute forcing is wrong. Regarding the 2'nd question, do you think deriving different keys is not any good (or worse), is using a single master key for all passwords more than enough? Commented Sep 27, 2015 at 18:32