-->
Page 1 of 1

Problem with implementing AES on the ESP8266

PostPosted: Mon Aug 22, 2016 7:05 am
by Jonathancorera
I've been trying to implement AES encryption on the ESP8266 using the Spaniakos AES library for Arduino and RPi (https://github.com/spaniakos/AES). The example code "aes" from the library does not run on the ESP as it involves a few avr library includes in the source code, but I isolated the main encryption and decryption parts of the library and managed to get a code compiling and running.

With my code I am able to define a plain text string, encrypt it with AES using a predefined key and IV and decrypt the result back into plain text (identical to the original plain text string). However, when I try to convert the same cypher text with online AES encryptors/decryptors with the same key the resulting text does not decrypt to the same original plain text. I also tried running the default "aes" example code on an arduino Uno, but got the same results.

Any help with this problem would be greatly appreciated.

Re: Problem with implementing AES on the ESP8266

PostPosted: Sat Sep 24, 2016 4:19 pm
by robert.gregor
Hello, have you moved forward? I am planning in my project to use AES as well, so I would be interested in to your library. Looking to your post, do you use correct encryption method? CRC/ECB/OFB ? Maybe this can be an issue.

Re: Problem with implementing AES on the ESP8266

PostPosted: Wed May 09, 2018 11:00 am
by spaniakos
hello there ,
spaniakos here.

i will be glad to help you mod the library for ESP8266.
actually i have an esp8266 for myself now, but i havent had the time to mode it.

thank you

Re: Problem with implementing AES on the ESP8266

PostPosted: Thu Jul 05, 2018 2:53 pm
by espdude
@spaniakos Did you already modded your Library? If so, it would be awesome if you could post the link to it