In the dynpro definition and PBO define the field as active, input, output and invisible. Like passwords field, user input will be masked by asterisks. Read documentation like Setting Attributes Dynamically or navigate from MODIFY SCREEN help on Abap source/F1 to find it.
Regards,
Raymond