I recently dove back into the code to try and distill down an easy to use API that can be attached as a property to any DOM Window.
The WeaveCrypto API was truncated because Sync started using a better encryption system (J-PAKE) for its purposes, so I had to dig through hg log to find the bits I needed:
I took the old WeaveCrypto module and created an easy to use front-end component that sticks a ‘crypt’ property on each DOM Window.
My github repo is here: https://github.com/daviddahl/domcrypt
A demo (with xpi link) page is here: http://mozilla.ddahl.com/domcrypt/demo.html
The 3 methods exposed (so far) are generateKeyPair(), encrypt() and decrypt()
While I am not sure this is ‘production system’ ready, I am sure that these are the kinds of tools the users of the web need to build secure communications applications, toolkits and libraries.
Perhaps ‘Do Not Track’ can extend to ‘Do Not Datamine’?