<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to mask/encrypt a column and be able to unmask/decrypt it later? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602757#M174547</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28124"&gt;@Dontik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;As stated in the title, how to mask/encrypt (using a certain pattern/set of rules) a column and be able to unmask/decrypt it later?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Name - needs to contains letters and no special characters like !@'j etc. So I would like to change a name like John to something that could possibly be a name, i.e. a set of letters.&lt;BR /&gt;&lt;BR /&gt;Postal code - needs to follow a certain pattern NN-NNN, so 2 digits, a dash and 4 more digits.&lt;BR /&gt;&lt;BR /&gt;Document numer - needs to follow a certain pattern LLNNNNN, so 2 letters and 5 digits. Masked value also needs to be unique. &lt;BR /&gt;&lt;BR /&gt;But that's just the beginning, there should also be a way to reverse it, unmask it. &lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And WHERE is this to be masked?&lt;/P&gt;
&lt;P&gt;If in output report pages then possibly formats could work. But if you want to limit other users of your data sets you may have significant issues if this is for security purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you may be looking to make a series of formats but some issues arise such as is the data static or changing periodically. A one time use is not that difficult but details will arise if you will be continuing to add to the document number or postal codes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the "name" masking need to create a "unique" value? How many characters? Minimum or Maximum length?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 15:53:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-11-08T15:53:18Z</dc:date>
    <item>
      <title>How to mask/encrypt a column and be able to unmask/decrypt it later?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602684#M174514</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;As stated in the title, how to mask/encrypt (using a certain pattern/set of rules) a column and be able to unmask/decrypt it later?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Name - needs to contains letters and no special characters like !@'j etc. So I would like to change a name like John to something that could possibly be a name, i.e. a set of letters.&lt;BR /&gt;&lt;BR /&gt;Postal code - needs to follow a certain pattern NN-NNN, so 2 digits, a dash and 4 more digits.&lt;BR /&gt;&lt;BR /&gt;Document numer - needs to follow a certain pattern LLNNNNN, so 2 letters and 5 digits. Masked value also needs to be unique. &lt;BR /&gt;&lt;BR /&gt;But that's just the beginning, there should also be a way to reverse it, unmask it. &lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!</description>
      <pubDate>Fri, 08 Nov 2019 07:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602684#M174514</guid>
      <dc:creator>Dontik</dc:creator>
      <dc:date>2019-11-08T07:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask/encrypt a column and be able to unmask/decrypt it later?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602690#M174519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Proc PWENCODE to encrypt&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc pwencode in='my password';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result Ex:&amp;nbsp;{SAS002}DBCC571245AD0B31433834F80BD2B99E16B3C969&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 08:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602690#M174519</guid>
      <dc:creator>sridhar_m</dc:creator>
      <dc:date>2019-11-08T08:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask/encrypt a column and be able to unmask/decrypt it later?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602692#M174520</link>
      <description>Thank you, but it's not exactly what I want. Your result isn't following a pattern for a column, it's just a random set of digits, letters and special characters. Look at my examples.</description>
      <pubDate>Fri, 08 Nov 2019 08:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602692#M174520</guid>
      <dc:creator>Dontik</dc:creator>
      <dc:date>2019-11-08T08:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask/encrypt a column and be able to unmask/decrypt it later?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602693#M174521</link>
      <description>&lt;P&gt;You have three examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) The name John. What could that be changed into for example? What logic should it follow? Just 4 random letters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Postal code should follow a certain pattern. This is hardly a masking task. What if it does not follow this pattern?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Same issue as (2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For (2) and (3), take a look at Picture Formats. If you want a usable code answer, be more precise in your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 08:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602693#M174521</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-08T08:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask/encrypt a column and be able to unmask/decrypt it later?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602757#M174547</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28124"&gt;@Dontik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;As stated in the title, how to mask/encrypt (using a certain pattern/set of rules) a column and be able to unmask/decrypt it later?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Name - needs to contains letters and no special characters like !@'j etc. So I would like to change a name like John to something that could possibly be a name, i.e. a set of letters.&lt;BR /&gt;&lt;BR /&gt;Postal code - needs to follow a certain pattern NN-NNN, so 2 digits, a dash and 4 more digits.&lt;BR /&gt;&lt;BR /&gt;Document numer - needs to follow a certain pattern LLNNNNN, so 2 letters and 5 digits. Masked value also needs to be unique. &lt;BR /&gt;&lt;BR /&gt;But that's just the beginning, there should also be a way to reverse it, unmask it. &lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And WHERE is this to be masked?&lt;/P&gt;
&lt;P&gt;If in output report pages then possibly formats could work. But if you want to limit other users of your data sets you may have significant issues if this is for security purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you may be looking to make a series of formats but some issues arise such as is the data static or changing periodically. A one time use is not that difficult but details will arise if you will be continuing to add to the document number or postal codes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the "name" masking need to create a "unique" value? How many characters? Minimum or Maximum length?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 15:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-encrypt-a-column-and-be-able-to-unmask-decrypt-it/m-p/602757#M174547</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-08T15:53:18Z</dc:date>
    </item>
  </channel>
</rss>

