Encrypt Batch Files with PGP
Encrypt a Batch Uploads file with the Socure-provided PGP public key before you upload it—on macOS, Linux, or Windows.
PGP encryption adds a layer of protection to the sensitive PII in your batch file. Encryption is optional for Batch Uploads—files are always protected in transit—but you can encrypt your file first if your organization requires it. This guide shows how to encrypt your prepared CSV or JSON file with the Socure-provided PGP public key before you upload it.
Note:
The same PGP encryption process applies to other files Socure may ask your organization to upload for analysis. This guide focuses on a Batch Uploads file, but the encryption steps are identical for any file that must be encrypted with the Socure public key.
How it works
Note:
Encrypt your file only with the Socure-provided PGP public key. Do not use any other public key, and do not sign the file before or after encryption.
Download your PGP public key
Socure provisions your account with a unique PGP key pair. Download the Socure PGP public key from the Batch Uploads screen when you create a batch, then save the key file (for example, socure_key.asc) to your computer. Continue with the encryption steps below.
Encrypt your file with PGP
The encryption process uses the GNU Privacy Guard (GnuPG) implementation of the PGP standard. Follow the instructions for your operating system.
macOS or Linux
-
Open a terminal.
-
Import the Socure public key:
gpg --import socure_key.ascOn success, GnuPG prints a confirmation similar to:
gpg: key 6CFE17E37C6960B7: public key "Socure <[email protected]>" imported gpg: Total number processed: 1 gpg: imported: 1 -
Encrypt your file, replacing the file names with your own:
gpg --output clientname_encrypted.gpg --encrypt --recipient [email protected] data.csvOption Value --outputName of the encrypted file to create (for example, clientname_encrypted.gpg).--recipientThe recipient shown on the imported Socure key (for example, [email protected]).(final argument) The path to your prepared batch file ( data.csvor your.jsonfile).
Windows
- Install Gpg4win, a free, open-source encryption suite that includes the Kleopatra certificate manager.
- Import the Socure public key in Kleopatra:
- Go to File > Import Certificates.
- Browse to your saved key file, select it, and click Open.
- Click OK. The imported key appears under the My Certificates tab.
- Encrypt your file in Kleopatra:
- Click Sign/Encrypt.
- Browse to your prepared batch file, select it, and click Open.
- In the Sign/Encrypt Files dialog, enter
[email protected]in Encrypt for others. - In Output files/folder, set the encrypted file path and name (for example,
clientname_encrypted.gpg). - Click Sign/Encrypt, then Finish.
Upload the encrypted file
On the Batch Uploads screen, select your encrypted file and continue with validation and submission as described in Batch Uploads. Socure decrypts your file before processing.
Related topics
Updated about 4 hours ago

