INSTALL 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. SJCL comes with a file sjcl.js pre-built. This default build includes
  2. all the modules except for sjcl.codec.bytes (because the demo site doesn't
  3. use it). All you need to do to install is copy this file to your web
  4. server and start using it.
  5. SJCL is divided into modules implementing various cryptographic and
  6. convenience functions. If you don't need them all for your application,
  7. you can reconfigure SJCL for a smaller code size. To do this, you can
  8. run
  9. ./configure --without-all --with-aes --with-sha256 ...
  10. Then type
  11. make
  12. to rebuild sjcl.js. This will also create a few intermediate files
  13. core*.js; you can delete these automatically by typing
  14. make sjcl.js tidy
  15. instead. You will need make, perl, bash and java to rebuild SJCL.
  16. Some of the modules depend on other modules; configure should handle this
  17. automatically unless you tell it --without-FOO --with-BAR, where BAR
  18. depends on FOO. If you do this, configure will yell at you.
  19. SJCL is compressed by stripping comments, shortening variable names, etc.
  20. You can also pass a --compress argument to configure to change the
  21. compressor. By default SJCL uses some perl/sh scripts and Google's
  22. Closure compressor.
  23. If you reconfigure SJCL, it is recommended that you run the included test
  24. suite by typing "make test". If this prints "FAIL" or segfaults, SJCL
  25. doesn't work; please file a bug.