Find error in Python code (Cryptodome script)

Job ID: 31453659

Budget: €8 – €30 EUR

hi,
for school purpose i needed to convert a JAVA code source to Python, but i'm getting an error in my python code and i can't find the error so i need someone to debug and find the error, for this job i need :

- Someone that well know JAVA/Python language
- Cryptography knowledge
- Fast work

don't hesitate to message me for further informations.