Hello,
I am testing this AES encryption/decryption library:
and more specific I am trying this code:
Serial.begin(57600);
uint8_t key[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
char data[] = "0123456789012345";
aes256_enc_single(key, data);
Serial.print("encrypted:");
Serial.println(data);
aes256_dec_single(key, data);
Serial.print("decrypted:");
Serial.println(data);
On the output I am getting:
encrypted:⸮o⸮⸮5Ua⸮R⸮⸮⸮
decrypted:0123456789012345
The problem is that I get strange encrypted characters so If I want to use the encrypted message to another Arduino in order to decrypt it I doubt if it will be decrypted succefully because these characters are unreadable....
Any help? Do you suggest any other library for encryption/decryption?