Skip to content

Commit

Permalink
more updates: README, extension rebuilt, removed comments from the in…
Browse files Browse the repository at this point in the history
…stall.rdf
  • Loading branch information
David Dahl committed May 20, 2011
1 parent 7824aa6 commit 8473753
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
17 changes: 9 additions & 8 deletions 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.

Expand Down
Binary file modified extension/built/domcrypt.xpi
Binary file not shown.
12 changes: 1 addition & 11 deletions extension/domcrypt/install.rdf
Expand Up @@ -4,11 +4,10 @@
<Description about="urn:mozilla:install-manifest">
<em:id>domcrypt@ddahl.com</em:id>
<em:name>DOMCrypt</em:name>
<em:version>0.2</em:version>
<em:version>0.3</em:version>
<em:description>Provides window.mozCipher crypto tools to each window</em:description>
<em:creator>David Dahl</em:creator>
<em:homepageURL>http://domcrypt.org/</em:homepageURL>
<!-- <em:updateURL>https://domcrypt.org/extension/domcrypt/install.rdf</em:updateURL> -->
<em:type>2</em:type> <!-- type=extension -->

<em:targetApplication>
Expand All @@ -20,14 +19,5 @@
</Description>
</em:targetApplication>

<!-- <em:targetApplication> -->
<!-- <\!-- Fennec -\-> -->
<!-- <Description> -->
<!-- <em:id>{a23983c0-fd0e-11dc-95ff-0800200c9a66}</em:id> -->
<!-- <em:minVersion>1.1</em:minVersion> -->
<!-- <em:maxVersion>4.0.*</em:maxVersion> -->
<!-- </Description> -->
<!-- </em:targetApplication> -->

</Description>
</RDF>

0 comments on commit 8473753

Please sign in to comment.