Jasypt Users Forum

Jasypt used with Java binding in eXist

View: New views
1 Messages — Rating Filter:   Alert me  

Jasypt used with Java binding in eXist

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using Jasypt with Java binding in eXist. The script is:

declare namespace criptare = "java:org.jasypt.encryption.pbe.StandardPBEStringEncryptor";

let $constructorCriptare := criptare:new()

let $adaugareParola := criptare:setPassword($constructorCriptare, 'password')

let $textDeCriptat := 'text for encryption'

return criptare:encrypt($constructorCriptare, 'text for encryption')


But I got the following error:
exception while calling constructor public org.jasypt.encryption.pbe.StandardPBEStringEncryptor(): null

What do you think?

Thanks,
Claudius