From 3165bfb0ab0cdaff44a39bdc9494a13e80814c8f Mon Sep 17 00:00:00 2001 From: Bhaskar Annadata <11055531+annadata@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:27:50 +0530 Subject: [PATCH] Fix DeIdentifyWithFpe to use a dummy SSN as input text. Testing done: Manually tested to confirm sample works as expected. Sample output: >Text after format-preserving encryption: I'm Gary and my SSN is SSN_TOKEN(9):003857918 Automated test already exists and uses a SSN. --- dlp/snippets/src/main/java/dlp/snippets/DeIdentifyWithFpe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlp/snippets/src/main/java/dlp/snippets/DeIdentifyWithFpe.java b/dlp/snippets/src/main/java/dlp/snippets/DeIdentifyWithFpe.java index bb947c9a677..5ee4de61aab 100644 --- a/dlp/snippets/src/main/java/dlp/snippets/DeIdentifyWithFpe.java +++ b/dlp/snippets/src/main/java/dlp/snippets/DeIdentifyWithFpe.java @@ -43,7 +43,7 @@ public class DeIdentifyWithFpe { public static void main(String[] args) throws Exception { // TODO(developer): Replace these variables before running the sample. String projectId = "your-project-id"; - String textToDeIdentify = "I'm Gary and my email is gary@example.com"; + String textToDeIdentify = "I'm Gary and my SSN is 552096781"; String kmsKeyName = "projects/YOUR_PROJECT/" + "locations/YOUR_KEYRING_REGION/"