rweather / arduinolibs

Arduino Cryptography Library
444 stars 212 forks source link

Added Python wrapper for the CryptoLW classes (Acorn and Ascon) #50

Open dugrema opened 4 years ago

dugrema commented 4 years ago

Hi,

First I'd like to thank you for this great library. I have a few home projects using Arduino and had been wanting for years to add encryption for RF24 communication with my RaspberryPis. Well, it's now done.

The CryptoLW classes work great on the Arduino, but I couldn't find any Python implementation of Acorn or Ascon for my RPis. So yesterday I figured I'd give wrapping your lib a try. The object model is really clean, so this was incredibly easy even though it's my first attempt at C++/Python extensions. I'm more of a managed memory à la Java/Javascript/Python guy. C++ isn't my forté by any means.

I'm creating this pull request to know if you think this may be of interest to others. It's working well enough for me on RPis and other 64bit Ubuntu servers using Python3.

Thanks! Mathieu Dugré