Open LudovicRousseau opened 10 years ago
We use SJCL, which uses AES algorithm.
If you want to review the code and see how it is used you should look at https://github.com/Laverna/laverna/blob/master/app/scripts/apps/encryption/auth.js and https://github.com/Laverna/laverna/blob/master/app/scripts/apps/encryption/encrypt/modelEncrypt.js
A Wiki documentation is recommended, even if you could review the code for your self. So it would answer question on how to restore notes when you have your private keys or just want to know if synchronisation with encryption enabled works.
Best practice would be that the one respnsible for programming that would do a quick writing on the wiki.
(Despite mention all other undocumented stuff around here. :( )
I see that Laverna can cypher the notes. That is perfect and mandatory for notes stored on an external server like dropbox.
Can you document how the cryptography is used? What cryptographic algorithm is used? How are used the different cyphering parameters (salt, force, etc.)?
I think I should look at https://github.com/Laverna/laverna/tree/master/app/scripts/apps/encryption but I could not find the algorithms. Thanks