Database desensitization grammar analysis method and system, computer and readable storage medium

The invention relates to a database desensitization grammar analysis method and system, a computer and a readable storage medium, wherein the method comprises the steps of splitting a select query statement into two parts, namely query content and query conditions; performing hash calculation on the...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: FAN YUAN, LIU BO, SHAO WANYAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a database desensitization grammar analysis method and system, a computer and a readable storage medium, wherein the method comprises the steps of splitting a select query statement into two parts, namely query content and query conditions; performing hash calculation on the character string of the query content, and obtaining a hash value of the query content; inquiring whether the hash value is a new hash value or not; if yes, conducting grammar analysis on the query content, and obtaining tables and fields related to the query content; desensitizing the table and the field to obtain the desensitized table and the desensitized field, and reforming the desensitized query content; storing the hash value and the corresponding desensitized query content; combining the desensitized query content and the query condition to form a desensitized sql statement; and replacing the sql statement with the desensitized sql statement, generating a new data packet, and sending the new data packet to