Hey guys, I need another set of eyes (or something)
I'm having some issues with the uDecrypt function from the Identity Store MX_ENCRYPTED_PASSWORD attribute. When I try to decrypt it (sending a notification to a manager that the new account and password that was requested is now available.
When I test the task, I get:
Error Exception initializing Triple DES:mjava.lang.Throwable: Non hex character found: '.' (-1) at offset 32
Warning User: 9BW00041 has been created!
Warning Encrypted: {DES3CBC}1:4a0681d708743198-22a1df873bbc71777fc66efae663863e.
Warning Password: null.
So you see, I am passing what appears to be a valid encrypted password.
Here's the script I'm using. As you will see it's a place holder for the eventual email notificaition:
// Main function: zPlaceholder
function zPlaceholder(Par){
var pwd = Par.get ("MX_ENCRYPTED_PASSWORD");
var password = uDecrypt(pwd);
uWarning (" User: " + Par.get ("MSKEYVALUE") + " has been created!");
uWarning ("Encrypted: " + pwd);
uWarning (" Password: " + password + ".");
uWarning ("This is not a notification =)");
}
It's just not that complicated, which is what's driving me batty.
Now just for grins, I created this script, which I ran in a job and it works PERFECTLY! (Again making me wonder about my sanity)
// Main function: test
function test(Par){
var test = "this is a test"
var encr = uEncrypt(test);
var decr = uDecrypt(encr);
uWarning ("test: " + test);
uWarning ("encr: " + encr);
uWarning ("decr: " + decr);
}
Both are running in "To Generic" passes. I'm using 7.2 SP9 P1, and the encryption option is set to DES/CBC.
Thanks!
Matt