Home kellton

Main navigation

  • Services
    • Digital Business Services
      • AI & ML
        • Utilitarian AI
        • Predictive Analytics
        • Generative AI
        • Machine Learning
        • Data Science
        • RPA
      • Digital Experience
        • Product Strategy & Consulting
        • Product Design
        • Product Management
      • Product Engineering
        • Digital Application Development
        • Mobile Engineering
        • IoT & Wearables Solutions
        • Quality Engineering
      • Data & Analytics
        • Data Consulting
        • Data Engineering
        • Data Migration & Modernization
        • Analytics Services
        • Integration & API
      • Cloud Engineering
        • Cloud Consulting
        • Cloud Migration
        • Cloud Managed Services
        • DevSecOps
      • NextGen Services
        • Blockchain
        • Web3
        • Metaverse
        • Digital Signage Solutions
        • Spatial Computing
    • SAP
      • SAP Services
        • S/4HANA Implementations
        • SAP AMS Support
        • SAP Automation
        • SAP Security & GRC
        • SAP Value Added Solutions
        • Other SAP Implementations
      • View All Services
  • Platforms & Products
    • Audit.io
    • Kellton4Health
    • Kellton4NFT
    • Kellton4Commerce
    • KLGAME
    • tHRive
    • Optima
    • Our Data Accelerators
      • Data DigitalTwin
      • SmartScope
      • DataLift
      • SchemaLift
      • Reconcile360
    • View All Products
  • Industries
    • Fintech, Banking, Financial Services & Insurance
    • Retail, E-Commerce & Distribution
    • Pharma, Healthcare & Life Sciences
    • Non-Profit, Government & Education
    • Travel, Logistics & Hospitality
    • HiTech, SaaS, ISV & Communications
    • Manufacturing, Automotive & Chemicals
    • Oil,Gas & Mining
    • Energy & Utilities
    • View All Industries
  • Insights
    • Blogs
    • Brochures
    • Success Stories
    • News / Announcements
    • Webinars
    • White Papers
  • Careers
    • Life At Kellton
    • Jobs
  • About
    • About Us
    • Our Partners
    • Our Leadership
    • Testimonials
    • Analyst Recognitions
    • Investors
    • Privacy-Policy
    • Contact Us
    • Our Delivery Centers
      • India Delivery Center
      • Europe Delivery Center
Search
  1. Home
  2. All Insights
  3. Blogs

Encryption and Decryption of Data Using Pretty Good Privacy (PGP) with the SAP PGP Modules

SAP
October 18 , 2023
Posted By:
Digital Practice Team
linkedin
Encryption and Decryption of Data Using Pretty Good Privacy (PGP) with the SAP PGP Modules

Other recent blogs

Generative AI companies
ROI of Generative AI: Measuring its impact and value for your business
April 15 , 2025
Data migration cost
Breaking down the cost of Data Migration: Is it worth in 2025
April 10 , 2025
Data Migration trends 2025
Revealing top Data Migration trends and predictions to watch
April 01 , 2025

Let's talk

Reach out, we'd love to hear from you!

Image CAPTCHA
Get new captcha!
Enter the characters shown in the image.

Pretty Good Privacy (PGP) is a robust data encryption and decryption program used to secure a company’s sensitive data transmitted across the internet. Security experts use the module or technology to protect all their data and digital transmissions from data breaches and unauthorized access.

The cryptographic algorithm within the PGP module ensures the security of sensitive information during electronic data transmission, rendering it inaccessible to unauthorized individuals, even when traversing unsecured networks. In the SAP Process Integration (PI) environment, the PGP module functionality is carried out within the SAP Process Integration environment, enabling the encryption, digital signing, and compression of messages.

The PGP module employs the public key encryption method to fortify the contents of business documents. This method comprises two distinct sets of keys: one is a public key, and one is a private key, each serving a distinct purpose:

  • Public Key: This key is shared with partners to facilitate the encryption of messages intended for the user and the decryption of the user's digital signature.
  • Private Key: The user employs the private key for encrypting digital signatures and decrypting received messages.

7 key advantages of using the pretty good privacy (PGP) model in SAP

SAP PI/PO provides out-of-the-box functionality via Adapter Modules to support PGP— utilized to encrypt or decrypt data as well as sign it. Public keys (safe to share) are used to encrypt messages, while private keys (must not be shared) are used to decrypt the messages.

PGP Modules

1. PGPEncryption module

The PGPEncryption Module functions as the originator of PGP messages. It is used for the following activities:

  • Data Encryption 
  • Payload Signature 
  • Data Compression 

The PGPEncryption module is configured under the ‘modules’ tab in the receiver communication channel. It can be used in every communication channel that supports enhancement via modules (e.g. File, SFTP, JMS, SOAP, etc.)

PGP Encryption Module Configuration

Options for PGP encryption

Parameter NameDescription
applyEncryptionSet to true if you want to encrypt the outgoing message
applySignatureSet to true if you want to sign the outgoing message
applyCompressionSet to true if you want to compress the outgoing message
encryptionAlgoSpecify the algorithm to be used for encryption
signingAlgoSpecify the algorithm to be used for signature
asciiArmoredSet to true if you want the message to be ASCII armored
partnerPublicKeyUsed to specify the public key of the partner
ownPrivateKeyUsed to specify your own private key (never share this key with anyone)
pwdOwnPrivateKeyPassword for your own private key (never share this password with anyone)
keyRootPathPath where PGP keys are stored (if storing keys on PI/PO server)
useSecureStorageSet to true if you want to use PGP keys stored in B2B integration cockpit

2. PGPDecryption module

The PGPDecryption module functions as the subscriber of PGP messages. It is used for the following tasks:

  • Data Decryption
  • Signature verification
  • Data Decompression 

The PGPDecryption module is configured under the ‘modules’ tab in sender communication channel. It can be used in every communication channel that supports enhancement via Modules (e.g. File, SFTP, JMS, SOAP, etc.)

PGP Decryption Module

Options for PGPDecryption

Parameter Description
partnerPublicKeyUsed to specify the public key of the partner
ownPrivateKeyUsed to specify your own private key (never share this key with anyone)
pwdOwnPrivateKeyPassword for your own private key (never share this password with anyone)
keyRootPathPath where keys are stored (if storing keys on PI/PO server)
useSecureStorageSet to true if you want to use PGP keys stored in B2B integration cockpit

Managing PGP modules

The PGP Keys (private as well as public) can either be stored in the NetWeaver J2EE server's Secure Store or on the file server where PI/PO is installed. Storing keys in a secure store provides better and more secure options as compared to the local file server.

1. Secure store of NetWeaver J2EE server (Recommended Approach)

When keys are stored in Secure Store, the encryption and maintenance of keys are done using the B2B Integration Cockpit. It can be accessed via a web browser and provides an excellent user interface to upload/download keys. Currently, you can only import/export PGP keys in Secure Store. It does not provide an option to generate PGP key pairs.

When using this approach, you need to set the ‘useSecureStore’ option in the adapter module to ‘true’ to let the system know where the keys are stored.

B2B Integration

2. Storing keys on a file server of SAP PI/PO (Not Recommended)

Even though PI/PO allows keys to be stored on the file server, it is not advisable to do so. Using this approach may keep your keys exposed to anyone who has access to the server. Private keys must be stored in a safe location and must not be shared with anyone. Public keys can be freely shared across systems. If you decide to store your keys on the file server, you must set ‘useSecureStore’ to ‘false’ and provide the physical location of the key in the adapter module.

Conclusion

We have talked about SAP PI/PO at great length in this post. To truly elevate your organization’s security posture, you can effectively use the PGP module to achieve increased data integrity, security, and governance. Its ability to seamlessly encrypt, decrypt, and digitally sign data ensures not only its confidentiality but also its integrity, meeting the stringent requirements of today's data compliance standards.

Furthermore, the PGP SAP module's adaptability and scalability make it a versatile solution for organizations of all sizes, allowing them to grow and evolve with confidence. As we navigate an era where data is both a valuable asset and a potential liability, this partnership between PGP and SAP PI becomes a beacon of trust in the digital realm. It empowers businesses to communicate securely with partners, uphold compliance obligations, and ultimately cultivate stronger and more resilient connections within the global landscape of data exchange. In essence, the PGP SAP module is not just a technology; it's the guardian of data integrity and trust in the digital age.

By using SAP PGP Adapter Modules, you can successfully encrypt, decrypt, and sign your data. Most of the industry-standard encryption algorithms are supported and depending upon your licensing agreement with SAP, you may be able to download these modules without any additional costs.

Want to know more?

SAP Cloud Private vs Public
Blog
SAP S/4HANA Cloud Editions: Private vs. Public Cloud—which is right?
August 27 , 2024
SAP Upgrade guide
Blog
SAP S/4HANA upgrade guide: Why upgrading to higher version is more crucial than ever
January 29 , 2024
How to Perform File Content Conversion (FCC) with PGP in SAP PI/PO?
Blog
How to Perform File Content Conversion (FCC) with PGP in SAP PI/PO?
October 18 , 2023

North America: +1.844.469.8900

Asia: +91.124.469.8900

Europe: +44.203.807.6911

Email: ask@kellton.com

Footer menu right

  • Services
  • Platforms & Products
  • Industries
  • Insights

Footer Menu Left

  • About
  • News
  • Careers
  • Contact
LinkedIn Twitter Youtube
clutch Badge

© 2024 Kellton