web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

AES/GCM/NoPadding Encryption Support in D365FO X++ Without External DLLs

(1) ShareShare
ReportReport
Posted on by 10

Hi Everyone,

I'm working on a D365FO integration with a third-party API.

Their requirement is:

  • AES-128 symmetric encryption

  • Randomly generated session key

  • SHA-256 message digest

  • Cipher: AES/GCM/NoPadding

  • Base64 encoded payload

The challenge is that in D365FO X++, the available .NET crypto support appears limited mainly to AES/CBC, and I couldn't find native support for AES/GCM directly from X++.

I would prefer to avoid creating custom C# assemblies/DLL references if possible.

Has anyone implemented AES/GCM encryption directly in X++ or found an alternative approach within D365FO without relying on external C# code?

Any suggestions, workarounds, or best practices would be greatly appreciated.

Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,547 Most Valuable Professional on at
    There is no AES-GCM in .NET Framework BCL, as far as I know.
     
    Nevertheless it's supported by BouncyCastle, which is used by Microsoft in F&O and therefore F&O ships with it. For example, check out Authenticated Encryption in .NET with AES-GCM.
     
    I'm not even mentioning native X++ classes; you must be prepared for using .NET Interop for such a task (and you may soon find that creating a custom C# library is easier than trying to avoid it).
  • Deepak Agarwal Profile Picture
    8,917 on at
    On top of what Martin already mentioend , did you explored Logic apps or Function app in this case? You can have you custom logic for encryption/decryption.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 661 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 620

#3
Subra Profile Picture

Subra 473

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans