Standard Notes: https://standardnotes.org/ for plain text, encrypted notes. Everything is easily importable or exportable in .txt format.
MS OneNote is great however they have stopped updating their desktop application (which allows offline notes) in favor of putting everything in the cloud (which will require a subscription to yet another cloud service if you exceed the OneDrive limits.)