Skip to content

Commit

Permalink
remove const to make node 0.10 happy the second
Browse files Browse the repository at this point in the history
  • Loading branch information
mircohacker committed Jul 29, 2020
1 parent 1ca17e7 commit bf8ddad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ function decryptString (cipherText, keyphrases) {
var encryptedText = cipherText.split('@')[1]
var iv = Buffer.from(encodedVi, 'base64')
var lastError = null
for (var keyphrase of keyphrases) {
for (var i = 0; i < keyphrases.length; i++) {
var keyphrase = keyphrases[i]
try {
var key = crypto
.createHash('sha256')
Expand Down

0 comments on commit bf8ddad

Please sign in to comment.