Implements PBKDF2 as defined in RFC 2898, section 5.
Implements PBKDF2 as defined in RFC 2898, section 5.2
HMAC+SHA256 is used as the default pseudo random function.
Right now 20,000 iterations is the strictly recommended default minimum. It takes 100ms on a i5 M-580 2.6GHz CPU. The minimum increases every year, please keep that in mind. You may want to use the ScalaMeter test to tune your settings.
the password to encrypt
the number of encryption iterations
derived-key length
HMAC+SHA256 is the default as HMAC+SHA1 is now considered weak
the encrypted password