Services/Sync/Developer/StorageFormat: Difference between revisions

m
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
! id  
! id  
| string  
| string  
| Record identifier. Starting with version 5 it is highly recommended to use exactly 12 characters from the base64url alphabet for this.
| Record identifier. Starting with version 5 this SHOULD be exactly 12 characters from the base64url alphabet.
|-
|-
! modified  
! modified  
Line 86: Line 86:
== Version 5 ==
== Version 5 ==


Version 5 is similar to Version 2 and 3, except '''encryption''' has been dropped and the HMAC is now calculated with a separate key which is no longer used in its base64 representation but in its raw byte form.
Version 5 is similar to Version 2 and 3, except:


The keys with which to verify and decrypt a WBO are now determined based on the collection name. If collection-specific keys do not exist, the default key bundle should be used.
* the '''encryption''' field (which specifies the key to use) has been dropped; key selection is now implied by the WBO's collection
* the HMAC is now calculated with a separate key, used in its raw byte form rather than in base64 encoding.
 
The keys with which to verify and decrypt a WBO are now determined based on the collection name. If collection-specific keys do not exist, the default key bundle is used.


{| cellpadding=5
{| cellpadding=5
Line 110: Line 113:
  "IV":"GluQHjEH65G0gPk/d/OGmg==",
  "IV":"GluQHjEH65G0gPk/d/OGmg==",
  "hmac":"c550f20a784cab566f8b2223e546c3abbd52e2709e74e4e9902faad8611aa289"}</pre>
  "hmac":"c550f20a784cab566f8b2223e546c3abbd52e2709e74e4e9902faad8611aa289"}</pre>


== Version 3 ==
== Version 3 ==
canmove, Confirmed users
640

edits