You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

app engine - how do i encrypt an oprid's password using app eng peoplecode

4 replies [Last post]
bosmanjc's picture
User offline. Last seen 1 year 15 weeks ago. Offline
Joined: 07/23/2010
Posts: 14

how do i encrypt an oprid's password using app eng peoplecode?
i tried: encrypt_password oprid; <<< did not work

Lepa's picture
User offline. Last seen 3 weeks 2 days ago. Offline
Joined: 06/23/2008
Posts: 565
Re: app engine - how do i encrypt an oprid's password using ...

I've used the Peoplesoft delivered password encryption utility page before and below is the code that encrypts the password. I would imagine this would work in an application engine. They use java to do the trick.

PSGATEWAY_WRK.PT_IBGWENCPASSWD = "";

If None(PSGATEWAY_WRK.WRKPASSWORD) Then
   SetCursorPos(%Page, PSGATEWAY_WRK.WRKPASSWORD);
   Error MsgGet(158, 15136, "Message Not Found.");
Else
   If PSGATEWAY_WRK.WRKPASSWORD <> PSGATEWAY_WRK.IBPASSWORD Then
      SetCursorPos(%Page, PSGATEWAY_WRK.IBPASSWORD);
      Error MsgGet(158, 15133, "Message Not Found.");
   Else
      &pscipher = CreateJavaObject("com.peoplesoft.pt.integrationgateway.common.EncryptPassword");
      &str = &pscipher.encryptPassword(PSGATEWAY_WRK.WRKPASSWORD);
      &pscipher = Null;
      PSGATEWAY_WRK.PT_IBGWENCPASSWD = &str;
   End-If;
End-If;

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Ashar's picture
User offline. Last seen 4 weeks 3 days ago. Offline
Joined: 03/26/2008
Posts: 208
Re: app engine - how do i encrypt an oprid's password using ...

did you try hash function?

PSoft Search's picture
PSoft Search (not verified)
Re: app engine - how do i encrypt an oprid's password using ...

Thank you for this pointer!

Guest's picture
Guest (not verified)
Re: app engine - how do i encrypt an oprid's password using ...

May help u.......................

DCP_PC_CEMS_DTL.DCP_CEMS_PASSWORD = Encrypt("", DCP_CEMS_WRK.DCP_CEMS_PASSWORD);

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The question below is to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.