Replace PyCrypto with PyCryptoDome#26
Open
KyleKing wants to merge 8 commits intoandrewcooke:masterfrom
Open
Conversation
|
Doesn't seem to work on 3.9. |
Author
|
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. |
Author
|
@andrewcooke can you please take a look and consider merging this change? I need to use |
Author
|
This PR is still ready for review/merge/release if there is any interest! |
Author
|
Still ready for review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces the
pyCryptodependency 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 OKUpdate: 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-crypt4.1.7 in a Python 2.7 project without issue. Hopefully, these changes can be merged and released so others can benefit!