search cancel

FDM Masking Function HASHCARD1 Issue

book

Article ID: 187327

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Masking Function HASHCARD1

Here is the result of our verification of the masking function HASHCARD1. Some masking rules do not have the expected result. Here is the list of problematic rules.

  • After PARM4, if all the digits are « 0 » then we don’t mask or calculate the check digit.

 For any value containing only zeros, the result must be the same.  In the examples below, results should not be masked.

Mask command :

,CardNo1,HASHCARD1,1,16,7,13,Y,,,,,,,,,,,,,,,asd3af3,,,,,

Original card number

Results received

Status

Results expected

0;;;;;;;;;

0;;;;;;;;;

Ok

0;;;;;;;;;

00;;;;;;;;;

00;;;;;;;;;

Ok

00;;;;;;;;;

000;;;;;;;;;

000;;;;;;;;;

Ok

000;;;;;;;;;

0000;;;;;;;;;

0000;;;;;;;;;

Ok

0000;;;;;;;;;

00000;;;;;;;;;

00000;;;;;;;;;

Ok

00000;;;;;;;;;

000000;;;;;;;;;

000000;;;;;;;;;

Ok

000000;;;;;;;;;

0000000;;;;;;;;;

0000004;;;;;;;;;

Not ok

0000000;;;;;;;;;

00000000;;;;;;;;;

00000005;;;;;;;;;

Not ok

00000000;;;;;;;;;

000000000;;;;;;;;;

000000002;;;;;;;;;

Not ok

000000000;;;;;;;;;

0000000000;;;;;;;;;

0000006200;;;;;;;;;

Not ok

0000000000;;;;;;;;;

00000000000;;;;;;;;;

00000022632;;;;;;;;;

Not ok

00000000000;;;;;;;;;

000000000000;;;;;;;;;

000000602624;;;;;;;;;

Not ok

000000000000;;;;;;;;;

0000000000000;;;;;;;;;

0000004856787;;;;;;;;;

Not ok

0000000000000;;;;;;;;;

00000000000000;;;;;;;;;

00000023377979;;;;;;;;;

Not ok

00000000000000;;;;;;;;;

000000000000000;;;;;;;;;

000000085057800;;;;;;;;;

Not ok

000000000000000;;;;;;;;;

0000000000000000;;;;;;;;;

0000000000000000;;;;;;;;;

Ok

0000000000000000;;;;;;;;;

00000000000000000;;;;;;;;;

00000023084970030;;;;;;;;;

Not ok

00000000000000000;;;;;;;;;

000000000000000000;;;;;;;;;

000000230849700300;;;;;;;;;

Not ok

000000000000000000;;;;;;;;;

Used the same cases above but with the following masking formula : HASHCARD1,1,16,7,13,Y,,,,,,,,,,,,,,,asd3af3,000,,,,

The scramble file is empty and masking script end abnormally (exit value = 1). 

  

  • Must return the same value with the same Hash Key

 

In the example below, masking the same card number with the same masking key does not return the same result.  Example, the masking of this : «4540022729963358», return this : «4540024027350353».  But the masking of this : «  V 000004540022729963358», return this : «  V 000004540022579431318» but the expected result must be «  V 000004540024027350353»

 

Mask command :

,CardNo1,HASHCARD1,10,25,7,13,Y,,,,,,,,,,,,,,,asd3af3,000,,,,

,CardNo2,HASHCARD1,1,16,7,13,Y,,,,,,,,,,,,,,,asd3af3,000,,,,

Original card number

Masked card number

Result

Result expected

  V 000004540022729963358;4540022729963358;;;;;;;;

  V 000004540022579431318;4540024027350353;;;;;;;;

Not ok

  V 000004540024027350353; 4540024027350353;;;;;;;;

  V 000004540022729963341;4540022729963341;;;;;;;;

  V 000004540022579431311;4540024027350346;;;;;;;;

Not ok

  V 000004540024027350346; 4540024027350346;;;;;;;;

  V 000004540022729963333;4540022729963333;;;;;;;;

  V 000004540022579431313;4540024027350338;;;;;;;;

Not ok

  V 000004540024027350338; 4540024027350338;;;;;;;;

 

 

 

 

Cause

Defect

Environment

Release : 4.9

Component : CA Test Data Manager - Fast Data Masker

Resolution

Provided new patch FastDataMasker-4.9.6.0.zip

You need to adjust the start index in the mask file. The start index should be considered the position of the first non-space character.

Ex.: " V 000004540022729963358” instead of param1 start with 10, you should update it to 8.