suculent / thinx-aes-lib

AES wrapper for ESP8266/ESP32/Arduino/nRF5x
Other
113 stars 39 forks source link

AES encrypt decrypt #29

Closed maaz-shaikh closed 3 years ago

maaz-shaikh commented 3 years ago

I am using your library for AES128 bit encryption but was unable to decrypt the same data using online tools Hardware used Arduino Mega

suculent commented 3 years ago

https://github.com/suculent/thinx-aes-lib/issues/24

What padding and encoding did you use? See ticket above.

maaz-shaikh commented 3 years ago

Okay thank you for your help I'll check tomorrow and will let you know and can you please let me know how to change padding

I am using the "simple" example provided by you without making any changes

maaz-shaikh commented 3 years ago

Hey can you please let me know how I can implement PKCS#7 padding in CMS my above issue is been resolved Thanks and Regards

suculent commented 3 years ago

See usage of paddingMode defined in AES.h - does not seem to support PKCS#7 directly.

maaz-shaikh commented 3 years ago

Okay thank you!