Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Grim
committed
Jul 13, 2017
1 parent
0133ffd
commit 4bac2d5
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4bac2d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@miguelfreitas I was not sure about DMs' caching so I did this. I never worked before with
twister-crypto-bundle.js
so it needs your attention. there's an option to turn this encryption off in the next commit.first we dump private key and create crypto key object, then we use it to encrypt DM's data cache to store in localStorage and to decrypt too.
4bac2d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very interesting, i never thought of that use! :-)
but what exactly is the threat model you have in mind? are you aware the dm's are still not encrypted in the filesystem as stored by the daemon itself?
4bac2d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's for ones who may use it from remote machine or something. I don't know. sometimes people go crazy and strange things happen. paranoia mode on.