nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

Supporting PGP / GnuPG 🔒🔑

Open Natim opened this issue 11 years ago • 63 comments

I need to sign my email before they are send as well as encrypting/decrypting mail I am exchanging with some people.

Do you have any plan on support GnuPG integration with N1?

Natim avatar Oct 17 '15 13:10 Natim

:+1:

nightvisi0n avatar Oct 17 '15 22:10 nightvisi0n

@Natim commented on Oct 17, 2015, 9:44 AM EDT:

I need to sign my email before they are send as well as encrypting/decrypting mail I am exchanging with some people.

Do you have any plan on support GnuPG integration with N1?

This was the first thing I was looking for when I saw this project, tbh. I wonder if Keybase could help here; it could begin with support for them and then abstract out to allow for local keys to be used.

Reference docs: https://keybase.io/docs/api/1.0

jalcine avatar Oct 18 '15 20:10 jalcine

Dup was closed: https://github.com/nylas/N1/issues/19

If it were to remain open then FOSS developers would know it's a thing they can work on.

gardner avatar Oct 19 '15 22:10 gardner

There are many javascript libraries that can be used to implement such functionality using Nodejs like, OpenPGPjs and gpg.

gamontal avatar Oct 19 '15 22:10 gamontal

Cool! Now let's a PR going :)

jalcine avatar Oct 19 '15 22:10 jalcine

Did anyone start creating a plugin? And did everyone here vote for the implementation? :wink:

alexanderadam avatar Oct 20 '15 11:10 alexanderadam

Hey folks! Excited that there's a lot of community interest in GnuPG. We've been moving feature requests and plugin ideas to our product roadmap Trello board and there are almost 30 votes for it there! I'm happy to leave this issue open so we can keep the conversation going.

If anyone wants to pick up development of this, the team and I are happy to help out on the community Slack channel, but may not have time to work on it internally for a few months.

bengotow avatar Oct 21 '15 21:10 bengotow

Also, the n1-plugins repo might be a good place to get some code and start working on this

grinich avatar Oct 23 '15 22:10 grinich

+1 Essential!

daco-tech avatar Oct 29 '15 21:10 daco-tech

:+1:

joshumax avatar Nov 05 '15 04:11 joshumax

+1 for this.

esseti avatar Nov 05 '15 08:11 esseti

I am working on this. I have a decryption implementation working, but I am working on passphrase input and not stalling the UI with the decryption process with a 4096-bit key. String operations can be slow (>1000 ms delay).

mbilker avatar Nov 09 '15 15:11 mbilker

Also, I will sanitize my project and post it later on Github (in school at the moment).

mbilker avatar Nov 09 '15 15:11 mbilker

@mbilker Thank you for your work!

jalcine avatar Nov 09 '15 16:11 jalcine

@mbilker woah! Awesome, looking forward to your source! :+1:

alexanderadam avatar Nov 09 '15 17:11 alexanderadam

Currently working on it. Building a node worker to do decryption.

mbilker avatar Nov 09 '15 21:11 mbilker

Cooolll! Thank you. DC

On Mon, Nov 9, 2015 at 9:58 PM, mbilker [email protected] wrote:

Currently working on it. Building a node worker to do decryption.

— Reply to this email directly or view it on GitHub https://github.com/nylas/N1/issues/96#issuecomment-155211636.

daco-tech avatar Nov 09 '15 22:11 daco-tech

It's live. https://github.com/mbilker/email-pgp

mbilker avatar Nov 10 '15 00:11 mbilker

"[PGP] Decrypted message, 4579.6309710000005ms", source: /home/mbilker/.nylas/dev/packages/email-pgp/lib/message-loader.cjsx (267)
"[PGP] HTML found in decrypted, 0.085856ms", source: /home/mbilker/.nylas/dev/packages/email-pgp/lib/message-loader.cjsx (272)

Bottleneck is the decryption, which includes the decryption of secret key and decryption of actual message. Using a 2048-bit key will dramatically lower the time. I use a 4096-bit key.

mbilker avatar Nov 10 '15 05:11 mbilker

I am so glad to hear that people are working on this, I would love to switch away from my default Mac Mail app. I use GPGTools.org right now with Mac Mail and it works just fine, but I like the UI /UX of N1 much better. Please keep us posted on this progress.

zlatkobijelic avatar Nov 15 '15 03:11 zlatkobijelic