hawknetwork / sealnote-plus

Android app for keeping encrypted notes
Other
1 stars 0 forks source link

Move from database to encrypted archive #18

Open ajburley opened 5 years ago

ajburley commented 5 years ago

The database is a non-standard format, from which it is difficult (although by no means impossible) to retrieve the data without having the original app. We futureproof the users' data by moving to a standard file format, i.e. encrypted archive. Tags will still be in a non-standard format, but stored within the same archive in a human-readable format.

EDIT: Further details on this:

ajburley commented 5 years ago

Needs investigation - should we use TAR and then file encryption, or some kind of native encryption supported by an archive format (e.g. ZIP). This will depend on what's out there.

ajburley commented 5 years ago

Formats for file encryption are by no means standard; tutorials found on Google often suggest to the the openssl tool, but file encryption apps on the Play Store are often not compatible with the resulting format. The TAR format does not support encryption natively. Popular archive applications like ZArchiver only support encryption for ZIP and 7z formats. We will use Zip4j and ZIP encryption (AES-256) with the "Store" archiving method.

ajburley commented 5 years ago

Need to generate a legacy format database for testing prior to making these changes. Blocked by #53.