-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace PyCrypto with PyCryptoDome #26
base: master
Are you sure you want to change the base?
Conversation
Doesn't seem to work on 3.9. |
Can you check that # check_imports.py
from simplecrypt import encrypt, decrypt
password = 'pass'
ciphertext = encrypt(password, 'my secret message')
plaintext = decrypt(password, ciphertext)
print(ciphertext, plaintext) |
@KyleKing I'm dumb. Had the extra stuff installed. Thanks. Good stuff. |
@andrewcooke can you please take a look and consider merging this change? I need to use |
This PR is still ready for review/merge/release if there is any interest! |
This PR replaces the
pyCrypto
dependency with the actively maintained (and backward compatible)pyCryptoDome
. See discussion on EOL for PyCryptoAll tests pass; however, I had to skip a test that called a feature of
pyCrypto
(ctr()
) that was changed inpyCryptoDome
. If this PR will be merged, I can spend some time to figure out how to re-implement that test❯ nosetests -x ..................... ---------------------------------------------------------------------- Ran 21 tests in 437.129s OK
Update: I'll keep my fork live and will accept PRs. You can install the package from my fork with:
I've been using the fork for almost a year in Python 3.9 and 3.6 with backward compatibility with the official
simple-crypt
4.1.7 in a Python 2.7 project without issue. Hopefully, these changes can be merged and released so others can benefit!