Obfuscating intelligent data while preserving reserve values
View Patent ↗A system may receive a string of characters, identify two or more sub-strings of the string, compare the two or more sub-strings to one or more reserve values from a database of reserve values, identify a first sub-string of the two or more sub-strings that contains one of the one or more reserve values, identify a second sub-string of the two or more sub-strings with a sensitive value, and obfuscate the second sub-string and not obfuscating the first sub-string.
1. A system comprising:
a memory; and
a processor in communication with the memory, the processor being configured to perform processes comprising:
receiving a string of characters;
identifying two or more sub-strings of the string;
comparing the two or more sub-strings to one or more reserve values from a database of reserve values;
identifying a first sub-string of the two or more sub-strings that contains one of the one or more reserve values;
identifying a second sub-string of the two or more sub-strings with a sensitive value;
obfuscating the second sub-string and not obfuscating the first sub-string;
checking the obfuscated second string for one of the one or more reserve values; and
obfuscating, based on a determination that the obfuscated second string contains one of the one or more reserve values, the obfuscated second string a second time.
2. The system of claim 1 , wherein the process further comprises:
replacing, based on a determination that the obfuscated second string contains a reserve value, the obfuscated string with a replacement value based on the reserve value.
3. The system of claim 1 , wherein the process further comprises:
identifying a third sub-string with a calculated dependent value; and
recalculating the dependent value based upon the obfuscated second sub-string.
4. The system of claim 1 , wherein the identifying the two or more sub-strings further comprises:
identifying the reserve value in the string.
5. The system of claim 1 , wherein the identifying the two or more sub-strings further comprises:
receiving one or more rules for the identification of sub-strings; and
applying the rules to the string to identify the two or more sub-strings.
6. A method comprising:
receiving a string of characters;
identifying two or more sub-strings of the string;
comparing the two or more sub-strings to one or more reserve values from a database of reserve values;
identifying a first sub-string of the two or more sub-strings that contains one of the one or more reserve values;
identifying a second sub-string of the two or more sub-strings with a sensitive value;
obfuscating the second sub-string and not obfuscating the first sub-string;
checking the obfuscated second string for one of the one or more reserve values; and
obfuscating, based on a determination that the obfuscated second string contains one of the one or more reserve values, the obfuscated second string a second time.
7. The method of claim 6 further comprising:
replacing, based on a determination that the obfuscated second string contains a reserve value, the obfuscated string with a replacement value based on the reserve value.
8. The method of claim 6 further comprising:
identifying a third sub-string with a dependent value; and
recalculating the calculated dependent value based upon the obfuscated second sub-string.
9. The method of claim 6 , wherein the identifying the two or more sub-strings further comprises:
identifying the reserve value in the string.
10. The method of claim 6 , wherein the identifying the two or more sub-strings further comprises:
receiving one or more rules for the identification of sub-strings; and
applying the rules to the string to identify the two or more sub-strings.
11. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processors to perform a method, the method comprising:
receiving a string of characters;
identifying two or more sub-strings of the string;
comparing the two or more sub-strings to one or more reserve values from a database of reserve values;
identifying a first sub-string of the two or more sub-strings that contains one of the one or more reserve values;
identifying a second sub-string of the two or more sub-strings with a sensitive value;
obfuscating the second sub-string and not obfuscating the first sub-string;
checking the obfuscated second string for one of the one or more reserve values; and
obfuscating, based on a determination that the obfuscated second string contains one of the one or more reserve values, the obfuscated second string a second time.
12. The computer program product of claim 11 , the method further comprising:
replacing, based on a determination that the obfuscated second string contains a reserve value, the obfuscated string with a replacement value based on the reserve value.
13. The computer program product of claim 11 , the method further comprising:
identifying a third sub-string with a calculated dependent value; and
recalculating the dependent value based upon the obfuscated second sub-string.
14. The computer program product of claim 11 , wherein the identifying the two or more sub-strings further comprises:
identifying the reserve value in the string.