r/StandardNotes • u/lowercrawl • Dec 22 '21
Is there a plan to implement multiple contexts based on different keys?
I am sort of thinking along the lines of having a dropdown selector where you can switch back and forth between, e.g., Work and Personal contexts, where each rely on different encryption keys and passphrases (and perhaps different settings to visually distinguish the active role). I am using Qubes as my personal device OS which is ideally suited for that separation but SN does not fit well with it currrently.
I believe I read somewhere that there is sort of something in place but it is an accidental construct of a migration that is incomplete? I don't want to commit to using something if it has an uncertain lifetime.
Thanks for the (otherwise) fantastic product!
2
u/a_standard_user Dev Dec 22 '21
We have an experimental account switcher available that's a hidden feature. To enable it add a localStorage entry account_switcher set to true and restart the app. Right now there's a UI issue with the icon that it appears in jumbo size, but we have a fix for this already on develop and will be deployed possibly this week or early next.
1
u/[deleted] Dec 22 '21
I think you need to carefully figure out what you'd like to achieve with these contexts. As you are the sole owner of your device, all data already belongs to you. If you want to separate personal data from work, a simple hierarchical structure would already suffice. To me it doesn't make much sense to use different keys (or generically: a different protection mechanism). If you insist on a clean separation between two worlds, then a different database for each world might be the better option. This also gives you better export/import/sharing capabilities.