Password wizard in yang

There is wizard support in clipsec, but how to add this in yang .
The requirement is that the the password field to be masked while typing

The wizard feature itself is independent from your YANG model. It can only be defined in the clispec. However, data as defined in your YANG model can be accessed from within the wizard.

The masking of the password field will need to be done by user code. Take a look at the implementation of add_user.sh in examples.confd/cli/cli_command to see how the password field is hidden from the user.