TheAlphaSchoolSystemPTYLTD / api-introduction

A basic introduction to the TASS API's.
16 stars 10 forks source link

Python example using pycrypto #10

Closed MrJonRoberts closed 4 months ago

MrJonRoberts commented 4 years ago

pycrypto has not been updated since 2013 - pycryptodome is an stand in.

This update requires the following changes on line 47.

ciphertext = rijndael.encrypt(plaintext.encode("utf8"))

unable to test if it works or not as I am new to the TASS API and had to make these changes to get it to run with python 3.7.

team-hq commented 3 years ago

I know this is an old unanswered question (like all the others on this account :)) but that indeed works. I just installed pycryptodome and had to encode the str as per your code above. I tested it and it works.