Skip to content

Commit

Permalink
browser: switch to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Sep 9, 2016
1 parent 3d569bc commit 1e0f805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ exports.pbkdf2 = function (password, salt, iterations, keylen, digest, callback)
}

exports.pbkdf2Sync = function (password, salt, iterations, keylen, digest) {
if (!Buffer.isBuffer(password)) password = new Buffer(password, 'binary')
if (!Buffer.isBuffer(salt)) salt = new Buffer(salt, 'binary')
if (!Buffer.isBuffer(password)) password = new Buffer(password)
if (!Buffer.isBuffer(salt)) salt = new Buffer(salt)

checkParameters(iterations, keylen)

Expand Down

0 comments on commit 1e0f805

Please sign in to comment.