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

Is there any encryption/decryption framework or library present in D365?

(1) ShareShare
ReportReport
Posted on by 42
Hi Community,
 
I would want to know if any encryption/decryption framework present inside D365 using X++ code.
I would receive an encrypted file to D365 which I need to decrypt. Also, is it possible to encrypt the file before exporting from D365?
 
I have the same question (0)
  • Suggested answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Hi Sourav,
    Microsoft uses encryption technology to protect customer data while at rest in an environment's SQL Server database and Azure Storage.
    All instances utilize Microsoft SQL Server Transparent Data Encryption (TDE) and Azure Storage encryption to perform real-time encryption of data when written to the disk at rest.
    In addition to the default encryption at rest provided above, you can use the encryption API available in the Global X++ class. The methods Global::editEncryptedField() and Global::editEncryptedStringField() use the environment-specific data encryption certificate to perform data encryption and decryption.
    For more details, you can view the links below:
    Encryption in finance and operations apps - Finance & Operations | Dynamics 365 | Microsoft Learn
    Encryption in Microsoft Dynamics 365 - Microsoft Purview (compliance) | Microsoft Learn
    Best Regards,
    Hana
     
  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at
    Hi Sourav,
     
    You can refer to the below blog and see if it helps.
     
    Thanks,
    Girish S.
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    You can use Bouncy castle dll as a reference for encryption and decryption.
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi, You can use PGP encryption to encrypt/decrypt files. You will need to generate public key, private key and passphrase and the receiver of file should also have their set of keys. File will be encrypted with Public Key of receiver and the receiver will decrypt the file using their private key and passphrase. You have to use PGPCore Library, I have done it few years ago but don't have the source code now.
     
    check this article

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans