sjcl icon indicating copy to clipboard operation
sjcl copied to clipboard

About the main file

Open x09326 opened this issue 8 years ago • 7 comments

Hi, I'm going to host this lib on cdnjs.

I don't know which files should be added. Could you help me? Thanks! https://github.com/cdnjs/cdnjs/issues/8853

x09326 avatar Sep 08 '16 10:09 x09326

Hey, you could add the sjcl.js file in the main repo directory, which has the basic configuration necessary for encryption,decryption and hashing.

Nilos avatar Sep 08 '16 10:09 Nilos

Or you could build a full version and add that one, which would require you to download the repo and manually trigger make:

./configure --with-all
make

Nilos avatar Sep 08 '16 11:09 Nilos

@Nilos Another question. Could you update the latest version on npm? Because we prefer to use npm auto-update to added your all version.

x09326 avatar Sep 09 '16 03:09 x09326

Done! (at least for https://www.npmjs.com/package/sjcl )

Nilos avatar Sep 09 '16 08:09 Nilos

Hi @Nilos, between 1.0.3 and 1.0.5 I have an issue with the public API of sjcl (cf. https://github.com/TailorDev/monod/pull/206). It looks like I cannot use sjcl.encrypt() anymore for instance, but I don't find anything in the range of commits between those two versions.

(Edit: actually, I cannot import the lib using ES6 import, which used to work in 1.0.3)

Are the NPM packages compiled with the same options?

willdurand avatar Sep 09 '16 14:09 willdurand

Hmm all tests are green on our side: https://travis-ci.org/bitwiseshiftleft/sjcl I guess it is an import problem of some kind. They are compiled with the same options but we changed the closure compiler to a more recent version, which might be at fault.

Nilos avatar Sep 10 '16 10:09 Nilos

See #316

Nilos avatar Sep 10 '16 10:09 Nilos