PBKDF2-HMAC-SHA1 (v12)

Revision 12 of this benchmark created on


Description

Perform key derivation with PBKDF2 over HMAC-SHA1.

Preparation HTML

<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha256.js"></script>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/pbkdf2.js"></script>
<script src="http://bitwiseshiftleft.github.io/sjcl/sjcl.js"></script>
<script src="http://vibornoff.com/asmcrypto.js"></script>

Setup

var password = '96201446311021C2AC0000E00000000000000000000000000000000000000000',
      salt = '4B5536E9DB2661692FA0B4BDC93A8864',
      iterations = 4096,
      dklength = 32;

Test runner

Ready to run.

Testing in
TestOps/sec
CryptoJS
var key = CryptoJS.PBKDF2(password, salt, {
  hasher: CryptoJS.algo.SHA1,
  iterations: iterations,
  keySize: dklength
});
ready
SJCL
 
ready
asmCrypto.js
var key = asmCrypto.PBKDF2_HMAC_SHA1.hex(password, salt, iterations, dklength);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.