BrowserID Key Wrapping: Difference between revisions

Line 13: Line 13:
    
    
   function gotAssertion(assertion) {
   function gotAssertion(assertion) {
     // web site generates a key
     var key = generateKey();
    
    
     // wrap the key
     // wrap the key
Line 23: Line 23:
   }
   }


The plaintext key must be base64-encoded. The wrappedKey that is passed back is also base64-encoded. The plaintext is expected to be fairly short: mostly this is for wrapping other keys.
The key must be base64-encoded. The wrappedKey that is passed back is also base64-encoded. The plaintext is expected to be fairly short: mostly this is for wrapping other keys.


=== Internal API ===
=== Internal API ===
668

edits