BookmarkSubscribeRSS Feed
ashasupriya
Obsidian | Level 7

Hi All - I have a situation and need help here.

I am new to SAS. we get federal sensitive information and want to achieve FIPS compliance. we receive this sensitive information in a text file which will be downloaded to our site. we then compress and encrypt the raw file that we receive using 7z file manager.

Now we want a sas program to directly read this compressed & encrypted raw file, decrypt the data and process it( cleanup and fix up of dirty data) and encrypt the cleaned up data.

how can this be achieved? we are looking for an option where it should be possible to run those sql encrypt and decrypt commands in the sas code itself?
Any help is highly appreciated.

 

2 REPLIES 2
Reeza
Super User

Instead of :


@ashasupriya wrote:

 

Now we want a sas program to directly read this compressed & encrypted raw file, decrypt the data and process it( cleanup and fix up of dirty data) and encrypt the cleaned up data.


Instead, can you set up a process to download the file (assuming SFTP retrieval) read it into SAS and then encrypt and password protect the SAS file. That makes it a lot easier to manage IMO.  I believe that SAS can connect and download from SFTP given that you have a later version and HTTPS enabled. I'm also guessing the files are likely always in the same structure/format making it easier to write a correct import program. 

 


@ashasupriya wrote:

Hi All - I have a situation and need help here.

I am new to SAS. we get federal sensitive information and want to achieve FIPS compliance. we receive this sensitive information in a text file which will be downloaded to our site. we then compress and encrypt the raw file that we receive using 7z file manager.

Now we want a sas program to directly read this compressed & encrypted raw file, decrypt the data and process it( cleanup and fix up of dirty data) and encrypt the cleaned up data.

how can this be achieved? we are looking for an option where it should be possible to run those sql encrypt and decrypt commands in the sas code itself?
Any help is highly appreciated.

 


 

ashasupriya
Obsidian | Level 7
I just want to give a status update. we decided to download the sensitive raw information using 7Z file manager. 7Z file manager has options to encrypt and compress the files which we will be placed in a secured location( this takes care of securing the download process). SAS developer will read read this compressed file using Filename foo zip ‘<zipped file path>’ member=”<Actual zip file name>”; does some clean up of data and fuzzy logic is applied. I have built a sql pass through script in sas to encrypt/decrypt the information dynamically. ( using AES-256 algorithm with symmetric key). I am working on making it further easy by implementing encryption and decryption in a function and opening/closing of keys using stored procedure. but this part is still work in progress. I appreciate if anyone can help me with that.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1131 views
  • 5 likes
  • 2 in conversation