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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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