<?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: REG:Scrambling the digits in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4986#M2007</link>
    <description>Hi,&lt;BR /&gt;
This is not the right forum for this question. In fact, this is really a question that is best answered by Tech Support. To find out how to contact SAS Tech Support, refer to:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;.</description>
    <pubDate>Mon, 08 Oct 2007 13:13:38 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2007-10-08T13:13:38Z</dc:date>
    <item>
      <title>REG:Scrambling the digits</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4985#M2006</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Iam having the below requirement.&lt;BR /&gt;
Can anyone help me how to write the code for the below logic using SAS.&lt;BR /&gt;
&lt;BR /&gt;
A macro will be written which will scramble the digits. Following are the replacements for each digit&lt;BR /&gt;
 &lt;BR /&gt;
1 is replaced as 3&lt;BR /&gt;
2 is replaced as  5&lt;BR /&gt;
3 is replaced as  1&lt;BR /&gt;
4 is replaced as  6&lt;BR /&gt;
5 is replaced as  4&lt;BR /&gt;
6 is replaced as  8&lt;BR /&gt;
7 is replaced as  0&lt;BR /&gt;
8 is replaced as  9&lt;BR /&gt;
9 is replaced as  2&lt;BR /&gt;
0 is replaced as  7&lt;BR /&gt;
 &lt;BR /&gt;
For e.g. 2456 7890 will be scrambled to 5648 0927.&lt;BR /&gt;
&lt;BR /&gt;
And also the Rules are as follows:&lt;BR /&gt;
&lt;BR /&gt;
a)   For V Accounts first 4 and last 2 digits are fixed. The remaining digits need to be scrambled. For example&lt;BR /&gt;
 &lt;BR /&gt;
45361234 12341299      is replaced as   4536351635163599&lt;BR /&gt;
 &lt;BR /&gt;
b)  For Sc card accounts, first 4 digits are fixed. For example&lt;BR /&gt;
 &lt;BR /&gt;
4536 1234 1234 1299       is replaced as  4536 3516 3516 3522&lt;BR /&gt;
 &lt;BR /&gt;
c)    For all other accounts keep first 5 digits and last 2 fixed. The remaining digits need to be scrambled. For example&lt;BR /&gt;
 &lt;BR /&gt;
9000 1123 4567 8999       replaced  9000135164809299&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Siddhartha</description>
      <pubDate>Mon, 08 Oct 2007 12:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4985#M2006</guid>
      <dc:creator>Siddhartha</dc:creator>
      <dc:date>2007-10-08T12:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Scrambling the digits</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4986#M2007</link>
      <description>Hi,&lt;BR /&gt;
This is not the right forum for this question. In fact, this is really a question that is best answered by Tech Support. To find out how to contact SAS Tech Support, refer to:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;.</description>
      <pubDate>Mon, 08 Oct 2007 13:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4986#M2007</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2007-10-08T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Scrambling the digits</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4987#M2008</link>
      <description>It's interesting to see that some changes are symmetric, and some are not.  The 1 / 3 replacements are symmetric, and others are not.  This presents some vulnerabilities in decrypting the numbers.&lt;BR /&gt;
&lt;BR /&gt;
Replacing a digit with another through substringing is possible, by using a loop to pick each digit in turn and replace it.  Your definition of card types is not clear however, since the V and SC accounts appear to be from the same bin.&lt;BR /&gt;
&lt;BR /&gt;
I am assuming you are trying to protect card information being sent from a credit card company, and I'm a little lost as to the reason for doing it this way.  If you don't want to send the card number, but just want to send an identifier that is valueless to phishers, then build a table of card numbers, and assign them sequential numbers building a lookup table.  Then build a format from the table and use this to replace your data records.&lt;BR /&gt;
&lt;BR /&gt;
I don't know why you want 4 digits the same when a credit card bin is 6 digits, but you'll know that best.  Retaining the last two digits is also strange.  The 16th digit is called a LUHN code and as soon as you change the sequence or value of any of the preceding 15 digits, the LUHN code changes and the card number is immediately valueless.&lt;BR /&gt;
&lt;BR /&gt;
I would discuss the data with your information security people to ensure you are adequately obfuscating the account information.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Mon, 15 Oct 2007 08:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/REG-Scrambling-the-digits/m-p/4987#M2008</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-15T08:07:36Z</dc:date>
    </item>
  </channel>
</rss>

