on 02-11-2015 5:19 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matt/Tero
The only strange thing I see without testing myself is that your encrypted password seems to have a period at the end (if the script you are showing is accurate).
This seems a bit strange. Try your job with the same string as the password and see if you get the same encryption.
Ole K.
Hmm, just throwing that in there:
{DES3CBC}1:4a0681d708743198-22a1df873bbc71777fc66efae663863e.
Is the warning talking about the dot at the end of it?
Regards,
Steffi.
EDIT: Yeah, what Ole said. ^^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where does the encrypted password originate from? Was in encrypted with the same keys.ini as you're trying to decrypt?
The only hard time I've ever had was when keys.ini -files didn't match..
regards, Tero
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.