1. Shin Jungi
  2. PowerBuilder
  3. Wednesday, 11 October 2023 07:03 AM UTC

Hi, how are you?

This is the source code written in Appeon PowerBuilder 2019 R3 version.

[ Source Code ]

Blob lblb_data
Blob lblb_sha1
String ls_data

lblb_data = Blob("Test SHA1", EncodingANSI!)

CrypterObject lnv_CrypterObject
lnv_CrypterObject = Create CrypterObject

// Encrypt with SHA
lblb_sha1= lnv_CrypterObject.SHA(SHA1!, lblb_data)

Coderobject lnv_code
Lnv_code = create coderobject
//Encode the SHA blob data to be hex data and output as a string
Ls_data = lnv_code.hexencode(lblb_sha1)

messagebox("Ls_data", Ls_data)


I used the code as in the APPEON manual, but Null is stored in the Ls_data variable value. Which line is wrong?
Is it not supported in APPEON MOBILE?
Is there any way?
This is an urgent request.

thank you
Jungi

Shin Jungi Accepted Answer Pending Moderation
  1. Thursday, 26 October 2023 06:57 AM UTC
  2. PowerBuilder
  3. # 1

Thank you I solved it well by implementing only the API, excluding the SHA256 part. Thank you to everyone who helped us a lot.

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 11:14 AM UTC
  2. PowerBuilder
  3. # 2

In addition, it might also be possible to do the encryption using your database. Depending on which database you are using.

Comment
There are no comments made yet.
Shin Jungi Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 08:17 AM UTC
  2. PowerBuilder
  3. # 3

Where can I find JavaScript execution sample code?
Please provide a link to a place I can refer to.
thank you

Comment
  1. Andreas Mykonios
  2. Wednesday, 11 October 2023 08:37 AM UTC
Don't know but I believe that the web api solution should be easier.

Andreas.
  1. Helpful 1
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 08:06 AM UTC
  2. PowerBuilder
  3. # 4

You can always create a web api with this functionality and call it through your application. Never tried to do that. Another idea would be to investigate if you can achieve that functionality by calling some javascript. Take a look to ExecJavaScript in documentation.

Andreas.

Comment
There are no comments made yet.
Shin Jungi Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 07:49 AM UTC
  2. PowerBuilder
  3. # 5

Is there any way to implement SHA256 on APPEON Mobile?
How is this possible?

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 07:41 AM UTC
  2. PowerBuilder
  3. # 6

Hi.

As it is documented here: Unsupported Objects - - Supported PB Features for PowerServer Mobile (appeon.com), PowerServer Mobile doesn't support CrypterObject.

Andreas.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 11 October 2023 11:44 AM UTC
Correct... It's not supported as Appeon Mobile generates JavaScript from your PowerScript - hence the limitation.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.