1. Stefan Zierold
  2. PowerBuilder
  3. Thursday, 24 June 2021 10:56 AM UTC

I'm trying to encrypt something with AES , but i have to use PKCS7 padding.

Is there a way with PB2019R3 ? 

Stefan Zierold Accepted Answer Pending Moderation
  1. Friday, 25 June 2021 08:30 AM UTC
  2. PowerBuilder
  3. # 1

Hello,

Thanks for your answer!

I helped me, with creating a C# class library with SnapDevelop and using it in Powerbuilder with the new ".NET DLL Importer" function. Works fine. :)

Regards

Stefan

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 25 June 2021 14:56 PM UTC
Glad to hear that!
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 24 June 2021 15:14 PM UTC
  2. PowerBuilder
  3. # 2

Hi Stefan,

Per the documentation, only the following padding options are supported by the Crypter Object in PowerBuilder:

  • NoPadding! – No padding added to a block

  • ZerosPadding! – 0's padding added to a block

  • PKCSPadding! – PKCS #5 padding added to a block

  • OneAndZerosPadding! – 1 and 0's padding added to a block

  • DefaultPadding! – (Default) Default padding scheme. DefaultPadding! means PKCSPadding! for ECB or CBC mode. Otherwise, NoPadding! for modes like CFB, OFB, and CTR.

So it seems you would need to use a third-party solution.

Best regards,
Armeen

Comment
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.