1. Francisco Rico
  2. PowerBuilder
  3. Thursday, 1 December 2022 19:55 PM UTC

Hello. I need to use Crypter Object (PBCRYPT.DLL) in my project, but i don´t have it, and i don´t know hot to add to my project.


Any help is welcome..!!!

Thank You in advance.

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 1 December 2022 20:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi Francisco;

  That DLL is not from Appeon. This was originally (AFAIK) from an external 3rd party product.

FYI:  https://community.appeon.com/index.php/qna/q-a/pbcrypt-dll-provided-in-pb-runtime-package-of-2019-r3-is-not-working

   However, the built-in Cryptor object was not introduced into Appeon PB until release PB2019 R2 or higher. So if you are not on a newer release, this would not be in the PB runtime.

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 1 December 2022 20:26 PM UTC
Thanks Armeen .. but that would have been the "pbCSI170.dll" module in that release.

For PB 2019 GA=>R2 ... the module was named "pbcrypt190.dll"

It was only in PB 2019 R3 and higher that the runtime module was renamed to "pbcrypt.dll"
  1. Helpful 1
  1. Armeen Mazda @Appeon
  2. Thursday, 1 December 2022 20:37 PM UTC
I was referring to to CrypterObject not the DLL name... you mentioned the object was not available until PB 2019 R2.
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Thursday, 1 December 2022 21:10 PM UTC
Correct .. thanks!

BTW: There was a pbcrypt.dll" from a 3rd party product way back when.
  1. Helpful 1
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 1 December 2022 20:09 PM UTC
  2. PowerBuilder
  3. # 2

PBCRYPT.DLL is one of the runtime libraries in the newer versions of PowerBuilder for supporting the new CrypterObject: https://docs.appeon.com/pb2022/application_techniques/PowerBuilder_runtime_files.html

What version of PowerBuilder are you using?

Comment
There are no comments made yet.
Francisco Rico Accepted Answer Pending Moderation
  1. Thursday, 1 December 2022 20:25 PM UTC
  2. PowerBuilder
  3. # 3

Any idea of how to do it something similar...??

I need to Crypt the connection data in mi application.ini file.

THANY YOU IN ADVANCE.

Comment
  1. Roland Smith
  2. Thursday, 1 December 2022 21:14 PM UTC
You can't get a good answer until you tell us what version of PowerBuilder you are using.
  1. Helpful 1
  1. Francisco Rico
  2. Thursday, 1 December 2022 22:40 PM UTC
Sorry. You are right.

I am using the version 11.2 Build 9097, and migrating to Version 12.5 Build 5006
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Thursday, 1 December 2022 21:00 PM UTC
  2. PowerBuilder
  3. # 4

You didn't mention what version of PB you are using but as Armeen and Chris said, if it's >= 2017 R3 then you can just do something like:

CrypterObject     lcrypter

lcrypter = CREATE CrypterObject

lcrypter.somefunction()

 

It's as easy as that.

Comment
  1. Francisco Rico
  2. Thursday, 1 December 2022 22:39 PM UTC
Sorry. You are right.

I am using the version 11.2 Build 9097, and migrating to Version 12.5 Build 5006

  1. Helpful
  1. Kevin Ridley
  2. Thursday, 1 December 2022 22:54 PM UTC
Really? It makes no sense to migrate from 1 unsupported version to another. Why wouldn't you migrate to PB2022 if you're going to do a migration? You will be on a supported long term version ( when R2 hits) and you will get a native CrypterObject.
  1. Helpful 2
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 2 December 2022 01:10 AM UTC
  2. PowerBuilder
  3. # 5

Hi, Francisco - 

Since you are running a version of PB that is 11+ years old, you will need to utilize the Microsoft Crypto API. Roland has a free code sample on his Top Wiz Programming web site:

   https://www.topwizprogramming.com/freecode_cryptoapi.html

Good luck!

Comment
  1. Francisco Rico
  2. Monday, 5 December 2022 22:14 PM UTC
JUST GREAT, my Friend.



THANK YOU.

  1. Helpful
  1. John Fauss
  2. Tuesday, 6 December 2022 05:04 AM UTC
You're welcome! Roland deserves the credit... I only pointed you in the right direction. If your question is answered to your satisfaction, would you please take a moment and mark this issue as resolved? Thank you.
  1. Helpful
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.