You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datafog redact-text "Tim Cook is the CEO of Apple and is based out of Cupertino, California"
89
+
```
90
+
91
+
which should output:
92
+
93
+
```bash
94
+
[REDACTED] is the CEO of [REDACTED] and is based out of [REDACTED], [REDACTED]
95
+
```
96
+
97
+
### Replacing Text
98
+
99
+
To replace detected PII:
100
+
101
+
```bash
102
+
datafog replace-text "Tim Cook is the CEO of Apple and is based out of Cupertino, California"
103
+
```
104
+
105
+
which should return something like:
106
+
107
+
```bash
108
+
[PERSON_B86CACE6] is the CEO of [UNKNOWN_445944D7] and is based out of [UNKNOWN_32BA5DCA], [UNKNOWN_B7DF4969]
109
+
```
110
+
111
+
Note: a unique randomly generated identifier is created for each detected entity
112
+
113
+
### Hashing Text
114
+
115
+
You can select from SHA256, SHA3-256, and MD5 hashing algorithms to hash detected PII. Currently the hashed output does not match the length of the original entity, for privacy-preserving purposes. The default is SHA256.
116
+
117
+
```bash
118
+
datafog hash-text "Tim Cook is the CEO of Apple and is based out of Cupertino, California"
119
+
```
120
+
121
+
generating an output which looks like this:
122
+
123
+
```bash
124
+
5738a37f0af81594b8a8fd677e31b5e2cabd6d7791c89b9f0a1c233bb563ae39 is the CEO of f223faa96f22916294922b171a2696d868fd1f9129302eb41a45b2a2ea2ebbfd and is based out of ab5f41f04096cf7cd314357c4be26993eeebc0c094ca668506020017c35b7a9c, cad0535decc38b248b40e7aef9a1cfd91ce386fa5c46f05ea622649e7faf18fb
125
+
```
126
+
88
127
### Utility Commands
89
128
90
129
#### 🏥 Health Check
@@ -135,7 +174,7 @@ datafog list-entities
135
174
136
175
💡 **Tip:** For more detailed information on each command, use the `--help` option, e.g., `datafog scan-text --help`.
5738a37f0af81594b8a8fd677e31b5e2cabd6d7791c89b9f0a1c233bb563ae39 is the CEO of f223faa96f22916294922b171a2696d868fd1f9129302eb41a45b2a2ea2ebbfd and is based out of ab5f41f04096cf7cd314357c4be26993eeebc0c094ca668506020017c35b7a9c, cad0535decc38b248b40e7aef9a1cfd91ce386fa5c46f05ea622649e7faf18fb
299
+
```
300
+
301
+
You can choose from SHA256 (default), SHA3-256, and MD5 hashing algorithms by specifying the `hash_type` parameter
302
+
194
303
## Examples
195
304
196
305
For more detailed examples, check out our Jupyter notebooks in the `examples/` directory:
0 commit comments