我正在使用 Spring 和 Hibernate 加密具有以下条目的对象。由于我有盐和密码,是否可以将信息解密回纯文本?
<bean id="hibernateStringEncryptor"
class="org.jasypt.hibernate.encryptor.HibernatePBEStringEncryptor">
<property name="registeredName" value="hibernateStringEncryptor" />
<property name="password" value="1234" />
<property name="saltGenerator">
<bean class="org.jasypt.salt.FixedStringSaltGenerator">
<property name="salt" value="1" />
</bean>
</property>
</bean>
@Entity
@Table(name = "Bride")
@TypeDef(name = "encryptedString", typeClass = org.jasypt.hibernate.type.EncryptedStringType.class, parameters = { @Parameter(name = "encryptorRegisteredName", value = "hibernateStringEncryptor") })
public class BrideDetails {
// ...