Giter VIP home page Giter VIP logo

python-omemo's People

Contributors

inputmice avatar kalkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-omemo's Issues

Is this still maintained?

Hey fellow maintainers,

just wondering if this project is still maintained from your side as there has not been many communication and updates since around June 2016.

If not, please let me know and we could discuss to transfer ownership for this repo or maybe adding me to the omemo organisation.

Cheers,
René

Library not found in pip

I'm trying to install python-omemo on debian wheezy via pip

root@localhost:~# pip install python-omemo 
Downloading/unpacking python-omemo
  Could not find any downloads that satisfy the requirement python-omemo
No distributions at all found for python-omemo
Storing complete log in /root/.pip/pip.log

But I get an error 404 response. Do I need to reconfigure pip or is the library removed from pip ?

root@localhost:~# cat .pip/pip.log 
------------------------------------------------------------
/usr/bin/pip run on Mon Jun 26 21:31:34 2017
Downloading/unpacking python-omemo

  Getting page http://pypi.python.org/simple/python-omemo
  Could not fetch URL http://pypi.python.org/simple/python-omemo: HTTP Error 404: Not Found
  Will skip URL http://pypi.python.org/simple/python-omemo when looking for download links for python-omemo
  Getting page http://pypi.python.org/simple/
  URLs to search for versions for python-omemo:
  * http://pypi.python.org/simple/python-omemo/
  Getting page http://pypi.python.org/simple/python-omemo/
  Could not fetch URL http://pypi.python.org/simple/python-omemo/: HTTP Error 404: Not Found
  Will skip URL http://pypi.python.org/simple/python-omemo/ when looking for download links for python-omemo
  Could not find any downloads that satisfy the requirement python-omemo

No distributions at all found for python-omemo

The exception information is the same for pip-2.7 or pip-3.2

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 978, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 157, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for python-omemo

Where is the error ?

Encrypted communication is uni-directional

The issue and the cause is described here: omemo/gajim-omemo#50

Steps to circumvent the problem include:

  • rename add_devices to set_devicesbecause this is what the method actually does. Helps to prevent confusion.
  • rename add_own_devices to set_own_devices (same reason as above)
  • create a new method call add_device(jid, deviceId) (Should not duplicate device ids in the array. Ie treat the array as a set)
  • In decrypt_msg call add_device with sender_jid and sid
  • Somewhere in init (before we connect to a server) add all recipient_id, device_id combos from the litesessionstore to the device_ids array (basically calling set_devices)

Add a newer version tag to include latest fixes

As the package is not available through PyPI, it would be good to go with a shorter version release cycle.
That way, we can at least give users a hint on what version is minimum required.

XEP-0384: OMEMO Encryption 0.4.0+

Can you add the XEP-0384: OMEMO Encryption support?

And XEP-0454: OMEMO Media sharing:

Diff Tool:

UnicodeEncodeError on Umlauts

Whenever i try to encrypt german umlauts, it runs into UnicodeEncodeError.

02/01/2017 22:26:11: stderr: ERR: File "/usr/local/lib/python2.7/dist-packages/omemo/state.py", line 279, in create_msg
02/01/2017 22:26:11: stderr: ERR: (key, iv, payload) = encrypt(plaintext)
02/01/2017 22:26:11: stderr: ERR: File "/usr/local/lib/python2.7/dist-packages/omemo/aes_gcm.py", line 37, in encrypt
02/01/2017 22:26:11: stderr: ERR: encoded_plaintext = padding_add(plaintext).encode()
02/01/2017 22:26:11: stderr: ERR: UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 28: ordinal not in range(128)

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.