Scrub onion addresses from log

This commit is contained in:
Torsten Grote
2016-08-23 13:08:55 -03:00
parent 22e7ec5b27
commit 83be5c766e
2 changed files with 19 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
package org.briarproject.util;
public class PrivacyUtils {
public static String scrubOnion(String onion) {
return onion.substring(0, 3) + "[_scrubbed_]";
}
}