Code Monkey home page Code Monkey logo

Comments (7)

brevilo avatar brevilo commented on August 28, 2024

Hi @oncecrossover and welcome to the "team"! Glad you like it so far 👍

I'll try and have a look at it over the weekend. In the meantime, which version of libolm are you using?

from jolm.

brevilo avatar brevilo commented on August 28, 2024

In the meantime, a few quick hints:

  • The plainText in Session.encrypt() doesn't refer to the actual message content you want to send, but to an event payload codified in JSON.
  • The session you're using is an Olm session. For its plaintext payload content and format please see this.
  • I think en-/decrypting a m.room_key event might do as a test.
  • For a general introduction of all things E2E I recommend the official guide. It's certainly not the most well-written (or structured) guide but I'm not aware of a better resource.
  • See that guide's section on Olm encryption for more details on the Session.encrypt() payload.

Hope this helps

from jolm.

brevilo avatar brevilo commented on August 28, 2024

Also, would you be fine with me adding your (modified) test as unit test, or do you rather want to submit a PR if and when you got your's working (for proper attribution)?

Thanks

from jolm.

oncecrossover avatar oncecrossover commented on August 28, 2024

Hello,

We are using 3.2.6 version.

BTW, We have encrypted message on Java, and decrypted on Android, it working fine.

from jolm.

oncecrossover avatar oncecrossover commented on August 28, 2024

Also, would you be fine with me adding your (modified) test as unit test, or do you rather want to submit a PR if and when you got your's working (for proper attribution)?

Thanks

Sure, I'm happy to contribute code. what's more important now is that we need a full unit test as soon as possible, our development work is broken here. could you quickly provide a unit test based on my test code? @brevilo

from jolm.

brevilo avatar brevilo commented on August 28, 2024

Hi @oncecrossover, you indeed hit a bug 😇

I fixed it in #3 (or the fix-2 branch). Could you please test it and report back before I merge it?
(Ignore the build failure in the PR checks, that's an unrelated GitHub workflow issue)

Thanks!

from jolm.

oncecrossover avatar oncecrossover commented on August 28, 2024

Hey @brevilo , it works on the fix-2 branch. 👍

from jolm.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.