What is the quickest way to hide all sensitive data in a payload?

Viewed 309

I have a very nested structure with sensitive data (SSN, passwords and so on). Is there a simple way of making all of those ---- so the content is hidden?

2 Answers

It seems the mask function is the easiest way:

%dw 2.0
import * from dw::util::Values
output application/xml
---
(payload mask "ssn" with "----") mask "password" with "----"
Related