9 lines
339 B
TypeScript
9 lines
339 B
TypeScript
|
import registerPromiseWorker from 'promise-worker/register';
|
||
|
import * as sjcl from 'sjcl'
|
||
|
|
||
|
|
||
|
registerPromiseWorker((payload) => {
|
||
|
// console.log(payload)
|
||
|
// console.log('decrypted = ' + sjcl.decrypt(payload.passphrase, JSON.stringify(payload.cipher)));
|
||
|
return sjcl.decrypt(payload.passphrase, JSON.stringify(payload.cipher))
|
||
|
});
|