1. A method for desensitizing character strings, comprising: ordering, by a processing device, a set of sensitive character strings; generating, by the processing device, a tree having a plurality of nodes corresponding to sensitive characters of the sensitive character strings; desensitizing, by the processing device, the sensitive characters on corresponding nodes of the tree in depth-first order, wherein the desensitizing includes assigning desensitization characters from a set of ordered desensitization characters to respective ones of the sensitive characters; and generating, by the processing device, a desensitized character string set having a same ordering as the ordered set of sensitive character strings, the desensitized character string set including desensitized character strings corresponding to respective ones of the sensitive character strings, wherein the desensitized character strings include respective strings of the desensitization characters.
1. A method for desensitizing character strings, comprising: ordering, by a processing device, a set of sensitive character strings; generating, by the processing device, a tree having a plurality of nodes corresponding to sensitive characters of the sensitive character strings; desensitizing, by the processing device, the sensitive characters on corresponding nodes of the tree in depth-first order, wherein the desensitizing includes assigning desensitization characters from a set of ordered desensitization characters to respective ones of the sensitive characters; and generating, by the processing device, a desensitized character string set having a same ordering as the ordered set of sensitive character strings, the desensitized character string set including desensitized character strings corresponding to respective ones of the sensitive character strings, wherein the desensitized character strings include respective strings of the desensitization characters. 2. The method as recited in claim 1 , wherein generating the tree comprises: generating a first portion of the tree, wherein the first portion of the tree has a first plurality of nodes corresponding to a first portion of the set of sensitive character strings; and after desensitizing sensitive characters on the first plurality of nodes, generating a second portion of the tree, wherein the second portion of the tree has a plurality of nodes corresponding to a second portion of the set of sensitive character strings.