Client: add passphrase for export/import
Created by: bnjbvr
When exporting, we can now encrypt the data with a passphrase provided by the user, as long as it has at least 8 chars including 1 digit, 1 uppercase letter and 1 lowercase letter. This could be reused when importing the encrypted file. We need to implement the client parts for this:
- add a checkbox "encrypted" next to the export button / import button.
- when this checkbox is checked, make a password field appear, which will include the passphrase.
- maybe share the regexp checking the password, so that we have early validation of the password (in the client). Validation must be kept on the server as well, though.