Giter VIP home page Giter VIP logo

pyscrypt's Issues

Python 3 all the things...

Hi,

I'd like to use this in a Python 3 project. I notice that your pyaes is Py3 friendly but not this one. AFAICT there are a couple of exception syntax errors (i.e. use except Exception as e: syntax) and old school print statements. I'm guessing bytes / strings in Py3 might also cause issues.

Happy to help if need be.

N.

pyscrypt/scrypt API parity

Modern scrypt API has a maxtime=... parameter instead of N,r,p,dkLen.

I would be nice to have same in this library, so that they are truly interchangeable...

Please document performance

At the first glance, pure-Python seems slow, is the underlying crypto implemented in pure Python, or does it use something from stdlib, etc...

So, for someone who doesn't want to dig too deep, README.md could have a simple performance comparison, e.g. against pypi:scrypt with same settings.

Python 3 - Allow ScryptFile mode 'r' as long as underlying file is 'rb'.

Just an idea for a future enhancement.

Basically on Python 3, the binary file must be opened with the 'rb' mode and I check that the ScryptFile mode matches the file pointer mode.

Since Python 3 makes a distinction between what things like read() return, (bytes for 'rb', strings for 'r') it would be convenient to have the underlying file object opened as 'rb' (which it must be, since the encrypted file is binary) but specify the ScryptFile mode as 'r'. Then read could perform whatever text conversion the built-in file object performs in the case of 'r' vs 'rb'.

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.