Hi. I am trying to make some fields in the database encrypted by using Jasypt (Following this tutorial http://www.jasypt.org/hibernate3.html )
The part where I am stuck are when I am to register the encryptor. Have any of you done this and care to share the code or some pointers to how I can register the encryptor? The example says: ----- Without Spring, we will have to use the HibernatePBEEncryptorRegistry singleton directly, registering our encryptor at application initialization like this (for example, inside aServletContextListener for a webapp): StandardPBEStringEncryptor strongEncryptor = new StandardPBEStringEncryptor(); ... HibernatePBEEncryptorRegistry registry = HibernatePBEEncryptorRegistry.getInstance(); registry.registerPBEStringEncryptor("strongHibernateStringEncryptor", strongEncryptor); ----- Regards Sigbjørn Tvedt