zerotypic / wasg-register

Wireless@SG Registration Utility
GNU General Public License v3.0
121 stars 24 forks source link

Use Cryptodome instead of Crypto #11

Open healthcareguy opened 3 years ago

healthcareguy commented 3 years ago

Use Cryptodome instead of Crypto.

pip3 install pycryptodomex

Changes to wasg-register.py #from Crypto.Cipher import AES from Cryptodome.Cipher import AES

Instructions should probably mention that its perhaps best to register using mobile app or Wireless@Sgx Application on Mac or Windows and just retrieve here. Saves a ton of hassle :-)

Command that worked for me python ./wasg-register.py -r HPWITHOUT65 DDMMYYYY

zerotypic commented 3 years ago

Hmm does it not work properly with the regular pycryptodome package (that installs into the Crypto module) anymore?

navoytak commented 2 years ago

Pycryptodome is still working for me on Kubuntu 21.10 in virtualenv

pvanthony commented 1 year ago

Changes to wasg-register.py #from Crypto.Cipher import AES from Cryptodome.Cipher import AES

This has been useful for me on Fedora 37. Thank you for sharing.

KinBoon commented 2 months ago

Update for Ubuntu 24.04 Noble

Changes to wasg-register.py

#from Crypto.Cipher import AES 

to

from Cryptodome.Cipher import AES

Command that works for me with wasg-register.py in the folder you are currently in

python3 wasg-register.py -r HPWITH65 DDMMYYYY