Closed johnny-y-wang closed 3 years ago
Thanks a lot.
OK, so don't know why/how exactly but the encrypt function did accidentally include base64 conversion. It should not be there so I've removed it. After that change, the simple example forks as expected again.
I was playing around with the
simple.ino
example file and I ran into an issue withdecrypt_to_cleartext
. The issue is similar to what #46 described. I wrote a quick patch to fix the example code and wanted to send it upstream.The
aesLib.decrypt
function expects a raw input. This change performs base64 decode before feeding encrypted data intodecrypt_to_cleartext
.