Skip to content

Commit

Permalink
fix: increase num of iterations (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Sep 4, 2023
1 parent 4bb660e commit acd6608
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-balloons-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blockchain-lab-um/masca': patch
---

Increase number of iterations for PBKDF2 to 600k.
6 changes: 3 additions & 3 deletions packages/snap/src/Encryption.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class EncryptionService {
{
name: 'PBKDF2',
salt,
iterations: 100000,
iterations: 600000,
hash: 'SHA-256',
},
importedKey,
Expand Down Expand Up @@ -94,12 +94,12 @@ class EncryptionService {
{
name: 'PBKDF2',
salt: hexToUint8Array(salt),
iterations: 100000,
iterations: 600000,
hash: 'SHA-256',
},
importedKey,
{ name: 'AES-GCM', length: 256 },
true,
false,
['encrypt', 'decrypt']
);

Expand Down

0 comments on commit acd6608

Please sign in to comment.