Giovanni Boccacaprina

Greenhorn
+ Follow
since Aug 09, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Giovanni Boccacaprina

nevermind guys thanks
I found a fix for this

I had to use the Base64 decoder before decrypting the message
11 years ago
Hello guys.

I have been trying to encrypt with the Cipher class for a while now and I'm still getting issues. I'm having problems with the padding and with the byte array size. I receive this exception "Input length must be multiple of 8 when decrypting with padded cipher" This is the code I wrote:



I also tried using Hex instead of Base64 and I'm receiving this exception: "Given final block not properly padded"

please help me out, to find error. thanks in advance.
11 years ago