I was thinking of making something similar, along with E2E encryption. Could you add it?
Basic principle is you encrypt the DB or the individual notes with an AES synchronous key with a password that you put through a KDF and then apply your sync method to the individual notes.