Cloud Data Loss Prevention (Cloud DLP) fait désormais partie de la protection des données sensibles. Le nom de l'API reste le même: API Cloud Data Loss Prevention (DLP). Pour en savoir plus sur les services qui constituent Sensitive Data Protection, consultez la section Présentation de Sensitive Data Protection.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Classification de texte
Examinez l'entrée de texte suivante :
Please update my records with the following information:
Email address: foo@example.com
National Provider Identifier: 1245319599
Driver's license: AC333991
Nous obtenons une liste de résultats organisés dans les catégories suivantes :
Offset (l'emplacement de la chaîne où la valeur InfoType potentielle a été trouvée)
Des exemples de résultats sont indiqués dans le tableau ci-dessous.
InfoType
Likelihood
Offset
US_HEALTHCARE_NPI
VERY_LIKELY
122
EMAIL_ADDRESS
LIKELY
72
US_DRIVERS_LICENSE_NUMBER
LIKELY
155
CANADA_BC_PHN
VERY_UNLIKELY
122
UK_TAXPAYER_REFERENCE
VERY_UNLIKELY
122
CANADA_PASSPORT
VERY_UNLIKELY
155
Masquage automatique de texte
Plutôt que de vous présenter une liste de résultats, le masquage automatique génère un résultat duquel sont effacées les correspondances de données sensibles.
Exemple d'entrée avec masquage automatique :
Please update my records with the following information:
Email address: foo@example.com
National Provider Identifier: 1245319599
Driver's license: AC333991
Exemple de résultat utilisant un espace réservé "***" :
Please update my records with the following information:
Email address: ***
National Provider Identifier: ***
Driver's license: ***
Pour en savoir plus sur l'utilisation de la protection des données sensibles pour anonymiser des données sensibles dans du contenu textuel (y compris en masquant les données sensibles, en les remplaçant par une chaîne de jeton, et en les chiffrant et en les remplaçant à l'aide d'une clé générée de manière aléatoire ou prédéterminée), consultez Anonymiser des données sensibles dans du contenu textuel.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["# Text classification and redaction\n\nText classification\n-------------------\n\nGiven the following text input: \n\n```\nPlease update my records with the following information:\nEmail address: foo@example.com\n\nNational Provider Identifier: 1245319599\n\nDriver's license: AC333991\n```\n\nThe output is a list of findings, organized into the following categories:\n\n- [`InfoType`](/sensitive-data-protection/docs/infotypes-reference \"InfoTypes Reference\")\n- [`Likelihood`](/sensitive-data-protection/docs/likelihood \"Likelihood Concept Page\")\n- `Offset` (Where in the string the potential `InfoType` was found)\n\nExample output is shown in the table below.\n\nAutomatic text redaction\n------------------------\n\nAutomatic redaction produces an output with sensitive data matches removed\ninstead of giving you a list of findings.\n\nExample automation redaction input: \n\n```\nPlease update my records with the following information:\nEmail address: foo@example.com\n\nNational Provider Identifier: 1245319599\n\nDriver's license: AC333991\n```\n\nExample output using a placeholder of \"\\*\\*\\*\": \n\n```\nPlease update my records with the following information:\nEmail address: ***\n\nNational Provider Identifier: ***\n\nDriver's license: ***\n```\n\nResources\n---------\n\n- For more information about using Sensitive Data Protection to redact text, see [Redacting Sensitive Data From Text Content](/sensitive-data-protection/docs/redacting-sensitive-data).\n- For more information about using Sensitive Data Protection to de-identify sensitive data in text content---which includes \"masking\" sensitive data, replacing sensitive data with a \"token\" string, and encrypting and replacing sensitive data using a randomly generated or pre-determined key---see [De-identifying sensitive data in text content](/sensitive-data-protection/docs/deidentify-sensitive-data)."]]