diff --git a/README b/README index 8b9092e..81d370a 100644 --- a/README +++ b/README @@ -1,21 +1,22 @@ DOMCrypt -DOMCrypt is a Firefox extension that adds 'window.crypt' javascript object to any webpage. +DOMCrypt is a Firefox extension that adds 'window.mozCipher' javascript object to any webpage. -REQUIRES Firefox 4 beta or nightly: http://www.mozilla.com/en-US/firefox/beta/ or http://nightly.mozilla.org +REQUIRES Firefox 4 or nightly: http://www.mozilla.com/en-US/firefox/beta/ or http://nightly.mozilla.org All of the underlying encryption is handled by NSS, so it is fast native code -window.crypt exposes a Public Key Crypto API to content: +window.mozCipher exposes a Public Key Crypto API to content: -window.crypt.generateKeyPair(); - which accepts and stores a passphrase via chrome-privileged password prompts. All of the user encryption credentials are stored on the filesystem inaccessible to content (or web page) Javascript. +window.mozCipher.pk.generateKeyPair(); - which accepts and stores a passphrase via chrome-privileged password prompts. All of the user encryption credentials are stored on the filesystem inaccessible to content (or web page) Javascript. -window.crypt.encrypt(aMessage, aPublicKey); +window.mozCipher.pk.encrypt(); -window.crypt.decrypt(aMessage); +window.mozCipher.pk.decrypt(); -window.crypt.promptDecrypt(aMessage); - used when a user needs to enter the passphrase -window.crypt.getPublicKey() - returns the user's public key +window.mozCipher.pk.decrypt(); + +window.mozCipher.pk.getPublicKey(); See demo.html and demo.js for actual usage. diff --git a/extension/built/domcrypt.xpi b/extension/built/domcrypt.xpi index 04d32ec..e3a710f 100644 Binary files a/extension/built/domcrypt.xpi and b/extension/built/domcrypt.xpi differ diff --git a/extension/domcrypt/install.rdf b/extension/domcrypt/install.rdf index 9a6196f..ea5bba5 100644 --- a/extension/domcrypt/install.rdf +++ b/extension/domcrypt/install.rdf @@ -4,11 +4,10 @@ domcrypt@ddahl.com DOMCrypt - 0.2 + 0.3 Provides window.mozCipher crypto tools to each window David Dahl http://domcrypt.org/ - 2 @@ -20,14 +19,5 @@ - - - - - - - - -