资 源 简 介
GWT client crypto library.
Stanford Javascript Crypto Library http://crypto.stanford.edu/sjcl/ wrapper for GWT.
How to use - .jar?
1) Download the .jar from http://code.google.com/p/gwtsjcl/downloads/list
2) copy in your GWT project"s war/WEB-INF/lib folder and add it to its java class path
3) in your module"s gwt.xml file add:
4) Ready to start using it:
String s = "don quijote de la mancha", p = "psswd123";assertEquals(c.decrypt(p, c.encrypt(p, s)), s);
How to use - maven?
If you use maven for building your projects, then fortunately gwtsjcl library is mavenized.
There is a complete project example that uses maven and gwtsjcl library at
gwtsjcltest
You must add the following personal maven repository and then add it as a