intrbiz / arduino-crypto

A minimal crypto library for ESP8266 Arduino
Other
140 stars 54 forks source link

Decrypting the message in java problem #15

Closed VladHateganUt closed 4 years ago

VladHateganUt commented 6 years ago

I used your library to send a simple message which should be decrypted by java with both process and processNoPadding. In java i used "NoPadding" or "PKCS5Padding" and "NoPadding" decrypts but the result is not good, and "PKCS5Padding" gives this error Error while decrypting: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. Can you please help me understand how to better use the library? I guess the iv changes from the initial value of 16 X 0s. I would highly appreciate your answer!