Help using Base SAS procedures

Decryption of PGP encrypted dataset

Reply
Occasional Contributor
Posts: 8

Decryption of PGP encrypted dataset

Hi All,

 

Not sure if I am putting this in right group, please route me to right group if it is not the correct one.

 

We want to set up a mechanism to load PGP encrypted data set in SAS Office Analytics servers. Does SAS provides a capability to decrypt the files.

 

Regards,

Nishant

Super User
Posts: 3,261

Re: Decryption of PGP encrypted dataset

[ Edited ]

Are you aware that SAS has its own encryption capabilities for datasets? It would be a lot easier than trying to use third-party encryption and you can even go as far as restricting access to SAS data libraries:

 

http://support.sas.com/documentation/cdl/en/seclibag/66930/HTML/default/viewer.htm#bookinfo.htm

 

Regarding PGP - I don't think SAS can decrypt these directly. However I understand you can configure WINZIP to use PGP so you could use WINZIP tools to indirectly decrypt. If you are working on Unix then no doubt there would be third-party tools to help you here as well.

Occasional Contributor
Posts: 8

Re: Decryption of PGP encrypted dataset

Thanks, I will go through this and will post my findings.
Occasional Contributor
Posts: 8

Re: Decryption of PGP encrypted external dataset

Please correct me if I am wrong, the current blog says how to encrypt the SAS dataset but I am looking for a functionality where  SAS procs  can be use to import pgp/aes encrypted external file (delimited file either CSV or text file) in SAS. 

Super User
Posts: 7,868

Re: Decryption of PGP encrypted external dataset

From my experience with such tools I guess that a pgp commandline tool can be used as a filter (eg pgp -parameters < encrypted_csv_file will send the decrypted file to standard output).

 

In such a case, it is best (IMHO) to define a filename pipe where the decryption process is coded into the physical filename (see above). When you use such a filename in an infile statement, the decryption is done on the fly and the decrypted data is handed over to SAS as if you directly read a plain, unencrypted file.

You need to have XCMD enabled for this to work.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 8

Re: Decryption of PGP encrypted external dataset

Posted in reply to KurtBremser

Hi Kurt,

 

Thanks for the response.

 

Does this means that encrypted file can be placed on SAS server(Unix box), PGP command line Tool will decrypt the file and the file can be used by SAS,. Is my iunderstanding is correct?

 

If that is correct then we are not using SAS at all, it is purely based on PGP commandline tool.

 

REgards,

Nishant 

 

Super User
Posts: 7,868

Re: Decryption of PGP encrypted external dataset


NAwasthi wrote:

Hi Kurt,

 

Thanks for the response.

 

Does this means that encrypted file can be placed on SAS server(Unix box), PGP command line Tool will decrypt the file and the file can be used by SAS,. Is my iunderstanding is correct?

 

If that is correct then we are not using SAS at all, it is purely based on PGP commandline tool.

 

REgards,

Nishant 

 


Well, since SAS does not have a built-in tool for PGP decryption, you need to use an external one. But you can start/control that decryption process from within SAS, either by running the CLI tool with call system or the x statement, or by directly using it as a filter in a filename pipe.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 8

Re: Decryption of PGP encrypted dataset

Please correct me if I am wrong, the current blog says how to encrypt the
SAS dataset but I am looking for a functionality where SAS procs can be
use to import pgp/aes encrypted external file (delimited file either CSV or
text file) in SAS.

##- Please type your reply above this line. Simple formatting, no
attachments. -##

--
This email and any attachments may contain information that is proprietary,
confidential and/or privileged and for the sole use of the intended
recipients(s)
only.
If you are not the intended recipient, please notify the sender by return
email and delete all copies of this email and any attachments. Ahold and/or
its
subsidiaries shall neither be liable for the inaccurate or incomplete
transmission
of the information contained in this email or any attachments, nor for any
delay
in its receipt. To the extent this email is intended to create any legal
obligation,
the obligation shall bind only the contracting entity and not any other
entity within
the Ahold Group.
Super User
Posts: 7,868

Re: Decryption of PGP encrypted dataset

Downloads of PGP commandline tool for UNIX can be found here: http://www.pgpi.org/products/pgp/versions/freeware/unix/6.5.8/

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 8 replies
  • 681 views
  • 3 likes
  • 3 in conversation