Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow unencrypted data sync #265

Open
strk opened this issue Jan 22, 2023 · 9 comments
Open

allow unencrypted data sync #265

strk opened this issue Jan 22, 2023 · 9 comments
Labels
enhancement New feature or request

Comments

@strk
Copy link
Contributor

strk commented Jan 22, 2023

It would be handy to allow storing notes unencrypted. One less password to manage if the notes you are taking are not that sensitive...

@strk strk added the enhancement New feature or request label Jan 22, 2023
@adil192
Copy link
Member

adil192 commented Jan 22, 2023

If the only problem you have with encryption is that you need to remember an extra password, could you not just use the same password for nextcloud and encryption?

@strk
Copy link
Contributor Author

strk commented Jan 23, 2023

That's a good point, I guess I could, yes. I was really also thinking in terms of improving interoperability with other tools. Is there a formal specification for the file(s) format used by Saber ?

PS: I love to see this coming, great work you're doing !

@xmha97
Copy link
Contributor

xmha97 commented Feb 13, 2023

Thank you for thinking about the security of our data, but I don't need it.
I want to sync my notes on the personal server.
Please make the "Encryption Password" field, optional.

@Iey4iej3
Copy link

I have an alternative suggestion: possibility to select the notes to encrypt and the notes not to encrypt.

Now it turns out that the encryption sometimes leads to a computational overhead which slows down the app. I think that the encryption for non-sensitive notes (such as my course notes) does not seem to be necessary, thus I prefer a possibility to opt out non-sensitive notes.

@thiswillbeyourgithub
Copy link

Hi, I was wondering : can anyone give me pointers as to how I would go about manually decrypting .sba2 files on my computer?

I do have the file and the password, but am interested in decrypting it manually to see if I could code a few exporter. For example to Logseq whiteboards, or do handwriting OCR that automatically gets send somewhere etc.

Any pointers as to how I could manually decrypt the file given the password? If possible either in unix shell (I'm on linux) or python.

@adil192
Copy link
Member

adil192 commented May 12, 2024

Any pointers as to how I could manually decrypt the file given the password? If possible either in unix shell (I'm on linux) or python.

An easier route would be to use something like syncthing to sync the unencrypted notes.

If you really want to make a decrypting tool though, you'll need to just use file_syncer.dart and related files as a reference. The gist of it is that the notes are encrypted with a key and iv. The key and iv are stored in a config file on Nextcloud but they're encrypted by the user's encryption password.

@markwmuller
Copy link

Hi folks -- I'd like to chime in on this thread. In my mind, there are two ways of syncing files:

  1. With some "black box" cloud system, which the user configures through passwords and usernames. There is a third party that actually stores the data. In this case, having a way to encrypt the notes makes sense, because that prevents the third party from reading the files. The user never interacts with the raw files outside of the app, so it doesn't really matter what the storage system uses.
  2. Local sync, e.g. syncthing. Here, the notes are meant to be like any other files on my system, e.g. notes that I type into a text file and put on my desktop. I'm already used to dealing with files, storing them in a sensible place, and making backups. I want to make sure I can delete old notes as files (since they are, at the end, each a file). As such, here I do not want things encrypted, it makes it impossible for me to understand my own file structure from my file browser; it makes (e.g.) sync conflicts from syncthing totally opaque; it makes restoring a particular note from a backup impossible. There is no need for any additional security here; the user presumably already has full-disk encryption or similar.

As such, I'd love for this app to allow for local storage with absolutely no encryption; including the file name on disk matching the notebook title. I've put together an alternative suggestion in #1348

@Iey4iej3
Copy link

Iey4iej3 commented Aug 27, 2024

With some "black box" cloud system, which the user configures through passwords and usernames. There is a third party that actually stores the data. In this case, having a way to encrypt the notes makes sense, because that prevents the third party from reading the files. The user never interacts with the raw files outside of the app, so it doesn't really matter what the storage system uses.

It also makes sense that the user could choose which files to encrypt.

Local sync, e.g. syncthing. Here, the notes are meant to be like any other files on my system, e.g. notes that I type into a text file and put on my desktop. I'm already used to dealing with files, storing them in a sensible place, and making backups. I want to make sure I can delete old notes as files (since they are, at the end, each a file). As such, here I do not want things encrypted, it makes it impossible for me to understand my own file structure from my file browser; it makes (e.g.) sync conflicts from syncthing totally opaque; it makes restoring a particular note from a backup impossible. There is no need for any additional security here; the user presumably already has full-disk encryption or similar.

It is presumably supported now, but there seem to be issues: #1223

@jyo64
Copy link
Contributor

jyo64 commented Oct 31, 2024

image
Maybe something related to this. Encryption is throwing warnings when I try to sync across devices. I could also make do with not having any notes encryption in my storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants