Command Line Password Prompt in PHP

后端 未结 10 1461
北海茫月
北海茫月 2020-11-30 21:48

I\'m writing a command line tool to help my web app. It needs a password to connect to the service. I\'d like the script to show a password prompt so I don\'t have to pass i

10条回答
  •  有刺的猬
    2020-11-30 22:12

    You can use my hiddeninput.exe file to get real hidden input without leaking the information anywhere on screen.

    If you remove the last echo, the password should never show up, but you can use that for validation obvoiusly.

提交回复
热议问题