Changes

Jump to: navigation, search

Privacy/Features/DOMCryptAPISpec/Latest

8 bytes added, 21:39, 18 May 2011
no edit summary
]
== Browser Window property ==
;window.mozCipher<br>====== All web pages will have this property. The property is namespaced in order to provide future capabilities. The current design is asynchronous and looks like this: <br> ======
All web pages will have this property. The property is namespaced in order to provide future capabilities. The current design is asynchronous and looks like this<pre> { pk:{ // Public Key API set algorithm(algorithm){ }, get algorithm(){ },
{ pk: { // Public Key APIGenerate a keypair and then execute the callback function set algorithm generateKeypair: function ( function callback(algorithmaPublicKey ){ }, get algorithm(){ },
// Generate encrypt a keypair and then execute the callback functionplainText generateKeypair encrypt: function ( plainText, function callback( aPublicKey cipherMessageObject) ) { } ) { }
// encrypt decrypt a plainTextcipherMessage encrypt decrypt: function ( plainTextcipherMessageObject, function callback (cipherMessageObject) plainText ) { } ) { }
// decrypt sign a cipherMessagemessage decrypt sign: function ( cipherMessageObjectplainText, function callback ( plainText signature ) { } ) { }
// sign verify a messagesignature sign verify: function ( signature, plainText, function callback ( signature boolean ) { } ) { } // get the JSON mozCipherAddressbook get addressbook() {} // make changes to the addressbook saveAddressbook: function (JSONObject, function callback () { }) { } },
// verify a signature verify: function ( signature, plainText, function callback ( boolean ) { } ) { } // get the JSON mozCipherAddressbook get addressbook() {} // make changes to the addressbook saveAddressbook: function (JSONObject, function callback () { }) { } },  hash: { SHA256: function (function callback (hash){}) { } } }</pre>
== PublicKey discovery ==
564
edits

Navigation menu