# New Plugin: Encrypted notes

**URL:** <https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447>\
**Category:** Plugins\
**Created:** [30 January 2021 09:34 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447 "2021-01-30T09:34:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaptainZXX](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@CaptainZXX](https://discourse.joplinapp.org/u/CaptainZXX)\
**Post date:** [30 January 2021 09:34 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/1 "2021-01-30T09:34:26Z")

</div>

- This is a plugin for encrypting notes
- The following is the usage note

1. It has been tested and used only under Windows 10

2. The plugin uses CryptoJS to encrypt text and does not encrypt attachments. Data security depends on the CryptoJS library

3. No password retrieval function, not anywhere to save the password, password lost without any means to recover

4. The plugin prohibits modification of encrypted files, but it can be modified without installation of the plugin, including mobile APP;The modified encrypted file cannot be decrypted properly

5. Use `!!!<br>>>> Do not change this file <br>` string to determine if it is an encrypted document, so Do not write the same string at the beginning of your normal document, for the same reason that if you change this string in an encrypted file, then the disabling function will be disabled. V\_V

English is not my native language, so you'll have to make do with it  
I hope you like this

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/0/049ce5046b2a3cc79ebacabc748a3d8ee248e3bb.png)  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/0/0b5af595723d53482131dfa05ed7b04f41e7db07.png)

> **[CapZhang/joplin-plugin-encrypt-notes](https://github.com/CapZhang/joplin-plugin-encrypt-notes)**
>
> joplin config. Contribute to CapZhang/joplin-plugin-encrypt-notes development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [30 January 2021 10:08 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/2 "2021-01-30T10:08:28Z")

</div>

I wonder if a string shorter than `!!!<br>>>> Do not change this file <br>` could be used because it's difficult to remember that when creating a new file. Why not just something like `[[crypted]]`?

How does it work by the way? At what point does it encrypt and decrypt the note?

---

<div class="post-metadata">

**Author:** ![CaptainZXX](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@CaptainZXX](https://discourse.joplinapp.org/u/CaptainZXX)\
**Post date:** [30 January 2021 10:54 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/3 "2021-01-30T10:54:05Z")

</div>

In fact `[[crypted]]` can also be used, I just randomly chose a string that is unlikely to appear in a normal note, but `[[crypted]]` is more likely to appear in normal notes.  
His principle is to use AES to encrypt and decrypt Markdown's plain text content. You can see this in the source code

By the way, will mobile APP support plugin in the future?

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [30 January 2021 11:40 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/4 "2021-01-30T11:40:11Z")

</div>

Yes although if you look for `[[crypted]]` only at the beginning of a note then it's relatively unlikely that it's meant for something else.

> By the way, will mobile APP support plugin in the future?

Technically it can be done as the plugin system is meant to be cross-platform but I haven't enabled it for mobile yet (and there would be the config UI to create too) because it doesn't look like there's much demand for it. Users often don't expect to be able to install plugins on mobile apps.

Let's see how it goes - if there's a strong case for adding plugin support for mobile, I might do it. I can see that it would indeed be useful for your plugin.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [30 January 2021 18:42 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/5 "2021-01-30T18:42:01Z")

</div>

Why is the repository called `joplin-config`? The plugin is about encrypting notes. Wouldn't it make more sense to call the repo: `joplin-plugin-encrypt-notes`

---

<div class="post-metadata">

**Author:** ![CaptainZXX](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@CaptainZXX](https://discourse.joplinapp.org/u/CaptainZXX)\
**Post date:** [31 January 2021 03:30 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/6 "2021-01-31T03:30:44Z")

</div>

> [@tessus](#):
>
> repository

You have a point, so I changed the name of repository

---

<div class="post-metadata">

**Author:** ![CaptainZXX](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@CaptainZXX](https://discourse.joplinapp.org/u/CaptainZXX)\
**Post date:** [31 January 2021 03:37 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/7 "2021-01-31T03:37:15Z")

</div>

I thought for a second that you had a point. I changed the string used to determine whether or not it was encrypted.  
If the mobile app doesn't support plugins, Notes that have been modified by the plugin are hard to read on the phone.  
Of course, it depends on whether you want to support it or not

---

<div class="post-metadata">

**Author:** ![Gamegenorator](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/gamegenorator/32/3466_2.png) [@Gamegenorator](https://discourse.joplinapp.org/u/Gamegenorator)\
**Post date:** [31 January 2021 07:51 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/8 "2021-01-31T07:51:07Z")

</div>

> [@laurent](#):
>
> Let's see how it goes - if there's a strong case for adding plugin support for mobile, I might do it. I can see that it would indeed be useful for your plugin.

+1 for mobile plugin support

---

<div class="post-metadata">

**Author:** ![PackElend](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/packelend/32/488_2.png) [@PackElend](https://discourse.joplinapp.org/u/PackElend)\
**Post date:** [14 February 2021 20:54 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/9 "2021-02-14T20:54:24Z")

</div>

could it be adapted to encrypt only part of the note?  
So lets's say, text what is enclosed by [[crypted]] .... [[\crypted]].

---

<div class="post-metadata">

**Author:** ![CaptainZXX](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@CaptainZXX](https://discourse.joplinapp.org/u/CaptainZXX)\
**Post date:** [17 February 2021 02:00 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/10 "2021-02-17T02:00:41Z")

</div>

Probably, but why not encrypt the note entirely?I think the purpose of this plugin is to prevent the private Note from being seen by curious passers-by.If I want to encrypt only one paragraph and need a good experience, I may not be able to do that right now，hahaha

---

<div class="post-metadata">

**Author:** ![PackElend](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/packelend/32/488_2.png) [@PackElend](https://discourse.joplinapp.org/u/PackElend)\
**Post date:** [17 February 2021 08:55 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/11 "2021-02-17T08:55:09Z")

</div>

> [@CaptainZXX](#):
>
> why not encrypt the note entirely?

you have secrets like credit card PIN or other things you write a node around it and only want to hide the PIN.  
Like the password manager in the browser you see address, username and only password is hidden.

There were some discussion during last year's GSoC, I can check if I can make them public, you may have get some input from over there in regard to your work, if you like?

---

<div class="post-metadata">

**Author:** ![CaptainZXX](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@CaptainZXX](https://discourse.joplinapp.org/u/CaptainZXX)\
**Post date:** [17 February 2021 09:12 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/12 "2021-02-17T09:12:22Z")

</div>

The plug-in encrypts the note with AES, so the length after encryption is not the same as before, but a long, meaningless string.Encrypting only one paragraph is not beautiful or practical.So I still recommend that if there are paragraphs that must be encrypted, put them in a private note.You can then use Joplin's built-in links to reference them in other notes

---

<div class="post-metadata">

**Author:** ![PackElend](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/packelend/32/488_2.png) [@PackElend](https://discourse.joplinapp.org/u/PackElend)\
**Post date:** [17 February 2021 10:28 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/13 "2021-02-17T10:28:40Z")

</div>

> [@CaptainZXX](#):
>
> but a long, meaningless string

what could be hidden by string like _Encrypted content_ or \*\*\*\*\*\*

> [@CaptainZXX](#):
>
> So I still recommend that if there are paragraphs that must be encrypted, put them in a private note.You can then use Joplin's built-in links to reference them in other notes

is an option it was an idea what was discussed before

---

<div class="post-metadata">

**Author:** ![diibv](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@diibv](https://discourse.joplinapp.org/u/diibv)\
**Post date:** [27 February 2021 00:28 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/14 "2021-02-27T00:28:19Z")

</div>

How can I create new encrypted note and set its password?

---

<div class="post-metadata">

**Author:** ![ajay](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ajay/32/6551_2.png) [@ajay](https://discourse.joplinapp.org/u/ajay)\
**Post date:** [13 May 2021 13:15 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/15 "2021-05-13T13:15:55Z")

</div>

@CaptainZXX  
Will this plugin show up in the plugin repository any time soon ?

---

<div class="post-metadata">

**Author:** ![LightLifePhotography](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/lightlifephotography/32/9084_2.png) [@LightLifePhotography](https://discourse.joplinapp.org/u/LightLifePhotography)\
**Post date:** [15 June 2021 09:55 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/16 "2021-06-15T09:55:49Z")

</div>

Instructions How to encrypt notes:

1. The plugin is not available to download in the app yet, so you have to manually install it: Go to [GitHub - CapZhang/joplin-plugin-encrypt-notes: joplin config](https://github.com/CapZhang/joplin-plugin-encrypt-notes) and download the code with the green "code" button.

2. open the zip file on your PC and Copy the publish/File\_encryption.jpl file to your computer

3. Import the plugin with Joplin in the menu: Tools/ options/ plugins/ click the settings icon/ install from file/ open the "File\_encryption.jpl" file

4. Restart the app and you should now have a lock button in the top right menu. Open any note and click the lock button to encrypt or decrypt.

5. You cannot modify an encrypted not once encrypted, you will need to decrypt and then re-encrypt

Thanks for this plugin!

---

<div class="post-metadata">

**Author:** ![joplin\_user](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@joplin\_user](https://discourse.joplinapp.org/u/joplin_user)\
**Post date:** [13 October 2022 05:36 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/18 "2022-10-13T05:36:37Z")

</div>

It looks like this plugin might be being continued here: [GitHub - ZhangTe/joplin-plugin-encrypt-notes: Encrypt selected notes in a joplin desktop client to keep secrets from peeping](https://github.com/ZhangTe/joplin-plugin-encrypt-notes)

---

<div class="post-metadata">

**Author:** ![Wimvan](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wimvan/32/12536_2.png) [@Wimvan](https://discourse.joplinapp.org/u/Wimvan)\
**Post date:** [16 October 2022 14:00 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/19 "2022-10-16T14:00:24Z")

</div>

Great! Will it be available through the plugin list for an automated istallation? That would be great for nontechs like me 😉

---

<div class="post-metadata">

**Author:** ![joplin\_user](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@joplin\_user](https://discourse.joplinapp.org/u/joplin_user)\
**Post date:** [16 October 2022 14:30 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/20 "2022-10-16T14:30:04Z")

</div>

Yes it looks like it shows up as an installable plugin for me.

---

<div class="post-metadata">

**Author:** ![Wimvan](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wimvan/32/12536_2.png) [@Wimvan](https://discourse.joplinapp.org/u/Wimvan)\
**Post date:** [16 October 2022 18:25 UTC](https://discourse.joplinapp.org/t/new-plugin-encrypted-notes/14447/21 "2022-10-16T18:25:40Z")

</div>

Ah yes, I found it in the [Plugin List](https://discourse.joplinapp.org/t/plugin-list/17671/1). It‘s named “ Note encryption”. Thanks!
