Skip to content

Commit f0ddb85

Browse files
committed
Fixed import issue
Import statements changed from Cryptodome to Crypto in newer version of 'pycryptodome'.
1 parent b03b574 commit f0ddb85

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

EncryptoPack.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
import string
1313
import random
1414

15-
from Cryptodome.Random import get_random_bytes
16-
from Cryptodome.Cipher import AES
15+
# from Cryptodome.Random import get_random_bytes
16+
# from Cryptodome.Cipher import AES
17+
18+
# Import statements changed from Cryptodome to Crypto in newer version of 'pycryptodome'
19+
from Crypto.Random import get_random_bytes
20+
from Crypto.Cipher import AES
1721

1822

1923
def get_optimal_block_size():

requrements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pyqt5
22
psutil
3-
pycryptodome
3+
pycryptodome

0 commit comments

Comments
 (0)