Changes

Jump to: navigation, search

Privacy/Features/DOMCryptAPISpec/Latest

461 bytes added, 21:59, 24 May 2011
Browser Window property
// Generate a keypair and then execute the callback function
generateKeypair: function ( function callback( aPublicKey ) { } ) { },
// encrypt a plainText
encrypt: function ( plainText, function callback (cipherMessageObject) ) { } ) { },
// decrypt a cipherMessage
decrypt: function ( cipherMessageObject, function callback ( plainText ) { } ) { } ,
// sign a message
sign: function ( plainText, function callback ( signature ) { } ) { } ,
// verify a signature
verify: function ( signature, plainText, function callback ( boolean ) { } ) { }, 
// get the JSON cipherAddressbook
get addressbook() {},
// make changes to the addressbook
saveAddressbook: function (JSONObject, function callback (addresssbook ) { }) { } }, sym: { // Symmetric Crypto API  get algorithm(),   set algorithm(algorithm), // create a new symmetric key generateKey: function (function callback ( key ){ }) { }, // encrypt some data encrypt: function (plainText, key, function callback( cipherText ){ }) { }, // decrypt some data decrypt: function (cipherText, key, function callback( plainText ) { }) { },
},
564
edits

Navigation menu