Richard
Thanks for reply,
It was quite informative.
I am encoding the encrypted field and then storing in database, just to provide one more level of encryption while saving in it to database. I will remove the encoding base64 before saving it and will see how much i can lower the odds.
Just to provide more info :
Actually the encryption in
java are similar to a encryption in cloud based platform called APEX used in SalesForce. I am encrypting by using the standard class provided in salesforce. These classes and packages used are similar to java encryption packages but with minor changes .
So i am in path of understanding the encryption AES256 in java and the similar implementation in SalesForce too.