Skip to content

E2EE Example #19

Description

@owwk

It would be good to have another example showing how encryption is used.

After many hours of trial and error along with looking through the gomuks source code I have got basic E2EE working with this library, but am unsure if I am doing it the right way.

I also can't figure out to keep E2EE working across restarts, even when I persist the crypto store, token and device id I am just met with "no session with given id found" errors.

A code example showing the right way to get encryption working with this library would really help me.

Alternatively a high-level "checklist" of everything that needs to be set up would be equally useful, e.g. what event listeners need to be set up, what functions need to be called, what data needs to be persisted etc.

Activity

  1. tulir commented on Jan 26, 2021

    @tulir
    Member

    Here's a quick example for sending/receiving, no persistence though: https://mau.dev/-/snippets/6

  2. Oyabi commented on Feb 4, 2021

    @Oyabi

    Hi, same request here.
    I can't get my session to be verified in Element with your code (thank you for it btw).

  3. Oyabi commented on Jul 26, 2021

    @Oyabi

    I bump this thread since I cannot keep a session open.
    If my bot crash or a problem occur on server, how can I keep my session and not create another?
    image

    Here you can see that many sessions with name Example are created.
    How to use only one session with the name Example? And how to authenticate them with max security settings?

  4. CubicrootXYZ commented on Nov 6, 2021

    @CubicrootXYZ

    Please add some documentation and examples. It really is a blind trial and error what I am doing currently.

  5. sumnerevans commented on Nov 8, 2021

    @sumnerevans
    Member

    You can take a look at some of these projects:

    I'd look at the vacation responder first, since it's the most barebones one.

  6. locked as resolved and limited conversation to collaborators on Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions