BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Robert
Fluorite | Level 6

I received a dataset last week that has some variables that contain encrypted data values. I was provided with the password and algorithm information, but am not sure how to implement this in SAS.

 

The algorithm is: PBEWITHSHA256AND256BITAES-CBC-BC

The data was encrypted using 1000 key iterations

 

I know how to encrypt data using the SHA256 function, but I don’t know how to decrypt data using the algorithm above. Can you please provide a solution to this problem.

1 ACCEPTED SOLUTION

Accepted Solutions
HB
Barite | Level 11 HB
Barite | Level 11

Here is a page that has a Python decryption function that may outline the pieces needed:

 

https://gist.github.com/bertramn/d22e88eba2ce432be016ab5d61595ab4

 

 

My instinct may be wrong, but I think I might look at decrypting the data before reading it into SAS.

View solution in original post

1 REPLY 1
HB
Barite | Level 11 HB
Barite | Level 11

Here is a page that has a Python decryption function that may outline the pieces needed:

 

https://gist.github.com/bertramn/d22e88eba2ce432be016ab5d61595ab4

 

 

My instinct may be wrong, but I think I might look at decrypting the data before reading it into SAS.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 4798 views
  • 0 likes
  • 2 in conversation