mirror of
https://github.com/amark/gun.git
synced 2025-06-07 06:36:46 +00:00
Fix missing require for crypto on SEA.work
This commit is contained in:
parent
aca0497fd5
commit
1a99f74b86
1
sea.js
1
sea.js
@ -287,6 +287,7 @@
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
// For NodeJS crypto.pkdf2 rocks
|
// For NodeJS crypto.pkdf2 rocks
|
||||||
|
const crypto = require('crypto')
|
||||||
const hash = crypto.pbkdf2Sync(
|
const hash = crypto.pbkdf2Sync(
|
||||||
data,
|
data,
|
||||||
new shim.TextEncoder().encode(salt),
|
new shim.TextEncoder().encode(salt),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user