I have this code:
Code: Select all
set /p "pass=>"
if NOT %pass%==123456 goto FAIL
but as I write this password is visible .... How do I hide?
Thanks, Walter4991
Moderator: DosItHelp
Code: Select all
set /p "pass=>"
if NOT %pass%==123456 goto FAIL
Code: Select all
set "hash="
set /p "pass=>"
for /f %%a in ('echo.^|md5.exe -d%pass% 2^>nul') do set "hash=%%a"
if NOT "%hash%"=="E10ADC3949BA59ABBE56E057F20F883E" goto FAIL