Jasypt Users Forum

Update existent hibernate application with jasypt

by cole123 :: Rate this Message:

Reply to Author | View in Thread

Hello,

i would like to enhance my web application with jasypt and the the transparent hibernate encryption. The problem i encountered are the already present table rows. I can define the encryption, but then i get a error, as jasypt isn't (of course) able to decrypt the not encrypted data. Is there a way to tell jasypt to "batch" encrypt all available data automatically [maybe a CLI?]? I dont want to read all the data using hibnerate manually, encrypting the attributes by "hand" and saving the value back again. If I have to do this, what have i to do in the case of Date fields? I can't call the EncryptedDateAsStringType methods to convert my dates?

Thanks,
Cole