Anavrins, on 30 April 2016 - 06:04 AM, said:
Functionality is pbkdf2(password, salt, iter, dklen)
Password and salt are self explanatory, iter is the number of iteration, more iteration makes it more slow, you can fine tune it to be not too slow but not so fast.
You don't need to touch dklen, this is the desired output length in bytes, it's defaulted to 32 and shouldn't be more than that for password storage, it's pretty much only useful for when you need more than 32 bytes of key material for ciphers and other.
This is a proper algorithm to make bruteforce slower, it's used in things like iPhone's pins, LastPass master keys and more.
It also passes the test vectors at https://stackoverflo...a2-test-vectors
Can you give a version with just pbkdf2 and make it as compact as possible?


