RNCryptor / rncryptor-js

(In Progress) JavaScript implementation of RNCryptor
15 stars 9 forks source link

Uncaught NOT READY: generator isn't seeded #5

Open McPo opened 7 years ago

McPo commented 7 years ago

Im attempting to use this library within an electron app. I have currently implemented https://github.com/chesstrian/JSCryptor, however the requirement for native dependencies isnt ideal, so Im looking to move to this library.

In order to integrate the library, Ive downloaded the src for v0.0.2, and added export default sjcl; to the end of sjcl.js, and import sjcl from './sjcl';, export default RNCryptor; to rncryptor.js

When attempting to encrypt a file, I am receiving.

sjcl.js [sm]:1 Uncaught NOT READY: generator isn't seeded

Any clue as to what might be wrong?

alg commented 5 years ago

Generator isn't seeded. This functionality isn't likely to work. There's also a FIXME comment in code.