I'm replacing PKCS7Padding padding with PKCS5Padding for my AES encryptions.
Can I use PKCS5Padding padding algorithm while decryption for already encrypted data using PKCS7Padding?
I tried using a sample program on local and somehow it works and didn't give any error. Just want to ensure if we need any sort of Migration for all the existing records.
For all the existing records, Do I need to decrypt first using PKCS7Padding and then again encrypt using PKCS5Padding and store it back in the DB?