I'm dealing with some small data, which needs padding to help with its security. I need to add random padding to the original string before encrypting it and storing it in a database. Can someone provide a clean/standard way of doing this?
Update
I removed my hackish approach as Zaph recommends AES and a random IV with padding (PKCS#7) as a standard way of doing this. Can anyone provide a clean example, where the original string can be at most 10 characters and the padding is an additional 20?
My attempt at googling failed me. But I'm stilling attempting to solve it. If I get it before someone replies, I'll post an answer.