❔ ✅ AES - Padding is invalid and cannot be removed
I am attempting to quickly encrypt a set of files using AES, but I'm getting the above error when decrypting.
I'm not sure if it's encryption or decryption that's wrong, but I've tried and googled everything I can think of, but nothing seems to works.
Can anyone tell me what's wrong with this code:
(also tried reading one-byte at a time, but with the same results)
I'm not sure if it's encryption or decryption that's wrong, but I've tried and googled everything I can think of, but nothing seems to works.
Can anyone tell me what's wrong with this code:
(also tried reading one-byte at a time, but with the same results)