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

Encrypted Messages #449

Closed
trymeouteh opened this issue Jul 11, 2024 · 2 comments
Closed

Encrypted Messages #449

trymeouteh opened this issue Jul 11, 2024 · 2 comments

Comments

@trymeouteh
Copy link

trymeouteh commented Jul 11, 2024

Here is a simple way I would like to purpose implimenting E2EE messaging in ActivityPub.

Simply by using OpenPGP. Every single account on activitypub will have a new field that is not visible to the public which is the users Public PGP Key. The instance and other instances can request any users public PGP key with an API command. If the user does not have a PGP key (Meaning the instance software does not support PGP encryption) you will not be able to send encrypted messges.

The users private PGP key will be stored on the server but will be stored with encryption by using the users password. The site admin will be unable to read any users PGP key. The private key decryption will be done client side.

When a messge is being sent to a user, these are the steps under the hood.

  1. It requests the recipents public key
  2. If there is a recipent public key, it sends the recipents public key to the sender
  3. If there is a recipient public key, it encrypts the message
  4. If there is no recipient public key, it will warn the user that this message will send unencrypted and the user can reject sending the message or continue sending the message with encryption.
  5. The message is sent to the user
@evanp
Copy link
Collaborator

evanp commented Jul 12, 2024

This is a reasonable architecture and one that's under discussion for E2EE. I'd love to get your thoughts for our ActivityPub E2EE task force. We're actively working on a report for this topic for AP right now. @trymeouteh can you take a look at https://github.com/swicg/activitypub-e2ee and consider helping us out?

@evanp
Copy link
Collaborator

evanp commented Jul 12, 2024

I've made a copy of this request in the e2ee task force repo; so I'm closing this one.

@evanp evanp closed this as completed Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants