Merge pull request #556 from zer09/master

Fix missing require for crypto on SEA.work
This commit is contained in:
Mark Nadal 2018-06-06 16:40:09 -07:00 committed by GitHub
commit 9ec40a3f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
sea.js
View File

@ -287,6 +287,7 @@
return r;
}
// For NodeJS crypto.pkdf2 rocks
const crypto = require('crypto')
const hash = crypto.pbkdf2Sync(
data,
new shim.TextEncoder().encode(salt),