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 7 years 48 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 4 weeks 3 days ago. Offline
Joined: 06/23/2008
Posts: 591
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 2 years 30 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
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

CAPTCHA
The question below is to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.