Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

mozilla-lockwise/kinto-lockbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Kinto.js and Lockbox DB spec In-Browser

Purpose:

Implement Lockbox DB Spec using Kinto.js and verify behaviour in WKWebView iOS and Android WebView. I confirmed it runs fine in all modern web view implementations –don't expect it to run on UIWebView for instance.

Building:

No steps required, just open the index.html in a browser.

Run it:

http://htmlpreview.github.io/?https://github.com/garvankeeley/kinto-lockbox/blob/master/index.html

Testing is not automated, there are a few buttons to add items, remove items, dump the indexedDB table to a text area, and to sync with the Kinto remote storage.

Details:

Lockbox item storage uses a key specific to each 'lockbox item', so accessing item information requires looking up key information in a table of 'perItemKeys'. The code implements this, and in particular it is useful to view the live indexedDB store to both confirm the data is stored as expected, and to get a hands-on understanding of how indexedDB is used by Kinto.js.

Crypto (i.e. key generation, encryption/decryption) is largely faked, or is placeholder code (there is a rudimentary PBKDF2 util used for key generation).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.2%
  • HTML 12.8%