tunapanda / funzo-app

Cordova app running ember and h5p
2 stars 3 forks source link

Encrypting the book #32

Closed Jakeii closed 8 years ago

Jakeii commented 8 years ago

We'll need to choose an algorithm, encrypt the book pages/html files and store the Key using something like: https://github.com/Crypho/cordova-plugin-secure-storage

We'll also need a tool to encrypt the book before adding it to the app.

Jakeii commented 8 years ago

https://github.com/aerogear/aerogear-cordova-crypto https://github.com/kjur/jsrsasign

usernamenumber commented 8 years ago

Milestone: encrypted content is checked into the repo as of e4340c34478a6255d2b4dd28df5c1bbe3f4eddaa in the book branch.

Content can be encrypted with a command like

# Prompts for passphrase, then prints encrypted content to stdout
openssl enc -aes256 -a -in SectionXX.html

HTML should be generated by making manual tweaks as needed in gdocs, then downloading as HTML and running the process_html-3.py script on it.

Reasonable handling of the key for unencryption via cordova remains TODO.

Jakeii commented 8 years ago

closing in favour of #41