Code Monkey home page Code Monkey logo

Comments (12)

qwj avatar qwj commented on May 18, 2024 1

thanks for the work. waiting for result of your benchmark. 👍

from python-proxy.

qwj avatar qwj commented on May 18, 2024 1

really appreciate your help. as the result suggests, I am planning to move to cryptography soon.

from python-proxy.

qwj avatar qwj commented on May 18, 2024

asyncssh requires cryptography, different library from pycrypto.
cryptography and pycryptodome can be used together without problems.
😄

from python-proxy.

qwj avatar qwj commented on May 18, 2024

I am thinking of using only one of the two libraries to simplify the dependencies.
It may be good to switch from pycryptodome to cryptography in our project.

from python-proxy.

mosajjal avatar mosajjal commented on May 18, 2024

can we have some benchmarks comparing pycryptodome and cryptography?

from python-proxy.

qwj avatar qwj commented on May 18, 2024

there is an old benchmark two years ago: http://nlitsme.github.io/posts/benchmarking-some-python-crypto-libraries/

from python-proxy.

mosajjal avatar mosajjal commented on May 18, 2024

I know that pycryptodome and pycrypto are drop-in replacements for one another. But I think using cryptography instead of pycryptodome requires some modifications in the code, right?

from python-proxy.

qwj avatar qwj commented on May 18, 2024

sure, code should be modified and more tests should be done.

from python-proxy.

mosajjal avatar mosajjal commented on May 18, 2024

I'm working on changing the Docker image from Alpine to Tinycore to have glibc to provide ssh tunnel as well as crypto acceleration. After that, I'll try to write some scripts to benchmark crypto speed. I'm guessing you want to keep things as lean as possible (so am I) so we'll think of something after the benchmark

from python-proxy.

mosajjal avatar mosajjal commented on May 18, 2024

https://github.com/mosajjal/python-crypto-benchmark

take a look at this project. Very basic benchmarks. Let me know if there's anything I can help with. My understanding is, cryptography is just as good maybe even better.

from python-proxy.

qwj avatar qwj commented on May 18, 2024

after several days of investigation, cryptography design is redundant.
for example, it has a design of changing backend, and now it is obsolete.
you should call get_default_backend() every time.
many useful apis have been labeled "hazardous materials"
so I don't think it is the right time to move from pycryptodome to cryptography
let's wait if there is some important reason in the future.

from python-proxy.

mosajjal avatar mosajjal commented on May 18, 2024

I agree. We could wait for a couple of months to see if any crypto library with Rust backend gets introduced as well

from python-proxy.

Related Issues (20)

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.