Local JavaObject &pscipher = CreateJavaObject("com.peoplesoft.pt.integrationgateway.common.EncryptPassword");
rem &pwd = "XXXX";
&pwd = "";
MessageBox(0, "", 0, 0, "Password before encryption " | &pwd);
&encPassword = &pscipher.encryptPassword(&pwd);
&yo = &pscipher.isPasswordEncrypted(&encPassword);
&pscipher = Null;
MessageBox(0, "", 0, 0, "Encrypted Password " | &encPassword | " " | &yo);
Local JavaObject &psCYPHER = CreateJavaObject("psft.pt8.pshttp.PSCipher");
&DecPwd = &psCYPHER.decodePassword(&encPassword);
MessageBox(0, "", 0, 0, "&DecPwd " | &DecPwd);
&psnode = Null;
No comments:
Post a Comment