Yes:
win=CreateWindow("textbox Password",84,40,220,80,0,1) tf=CreateTextField(10,10,90,24,win,1) ; <- use 1 for PASSWORD protection ActivateGadget tf Repeat Until WaitEvent()=$803 End