\href{https://www.npmjs.org/package/pbkdf2}{\texttt{ }} \href{https://travis-ci.org/crypto-browserify/pbkdf2}{\texttt{ }} \href{https://david-dm.org/crypto-browserify/pbkdf2\#info=dependencies}{\texttt{ }}

\href{https://github.com/feross/standard}{\texttt{ }}

This library provides the functionality of PBKDF2 with the ability to use any supported hashing algorithm returned from {\ttfamily crypto.\+get\+Hashes()}\hypertarget{md_sfcode_node_modules_pbkdf2_README_autotoc_md20333}{}\doxysection{Usage}\label{md_sfcode_node_modules_pbkdf2_README_autotoc_md20333}

\begin{DoxyCode}{0}
\DoxyCodeLine{var pbkdf2 = require('pbkdf2')}
\DoxyCodeLine{var derivedKey = pbkdf2.pbkdf2Sync('password', 'salt', 1, 32, 'sha512')}
\DoxyCodeLine{}
\DoxyCodeLine{... }

\end{DoxyCode}


For more information on the API, please see the relevant \href{https://nodejs.org/api/crypto.html\#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback}{\texttt{ Node documentation}}.

For high performance, use the {\ttfamily async} variant ({\ttfamily pbkdf2.\+pbkdf2}), not {\ttfamily pbkdf2.\+pbkdf2\+Sync}, this variant has the oppurtunity to use {\ttfamily window.\+crypto.\+subtle} when browserified.\hypertarget{md_sfcode_node_modules_pbkdf2_README_autotoc_md20334}{}\doxysection{Credits}\label{md_sfcode_node_modules_pbkdf2_README_autotoc_md20334}
This module is a derivative of \href{https://github.com/cryptocoinjs/pbkdf2-sha256/}{\texttt{ cryptocoinjs/pbkdf2-\/sha256}}, so thanks to \href{https://github.com/jprichardson/}{\texttt{ JP Richardson}} for laying the ground work.

Thank you to \href{https://github.com/fundon}{\texttt{ Fang\+Dun Cai}} for donating the package name on npm, if you\textquotesingle{}re looking for his previous module it is located at \href{https://github.com/fundon/pbkdf2}{\texttt{ fundon/pbkdf2}}. 