@echo off
@title Let batch files handle everything~ by:bowen
color 0a
MODE con: COLS=50 LINES=27
set ci=3
echo.
echo Note: three wrong entries will exit. If you don't know the password, then don't come in~~
echo.
:1
set /p ad=Please enter password:
if "%ad%" == "?????" goto o
set /a ci-=1
if \"%ci%\"==\"0\" cls&echo.&echo ====Trying to come in without the password!!!====No way!!!====&echo.&pause&echo.&exit
cls&echo.&echo You still have %ci% chances&echo.&goto 1
:o
cls&echo.
echo ============ The password seems correct~~, access granted ============
What I want to ask is, the red part is the password, and it gets displayed directly like this, which isn't good. Is there some way to use variables for it? For example, something like 5*5*5* or an expression like 5+5+5, of course it can be a bit more complex, like exponentiation. How would that be written?? I mainly just want to add a little bit of obfuscation, nothing too complicated, just enough to make other people unable to figure it out
[ Last edited by bowen666 on 2008-3-25 at 10:38 PM ]
@title Let batch files handle everything~ by:bowen
color 0a
MODE con: COLS=50 LINES=27
set ci=3
echo.
echo Note: three wrong entries will exit. If you don't know the password, then don't come in~~
echo.
:1
set /p ad=Please enter password:
if "%ad%" == "?????" goto o
set /a ci-=1
if \"%ci%\"==\"0\" cls&echo.&echo ====Trying to come in without the password!!!====No way!!!====&echo.&pause&echo.&exit
cls&echo.&echo You still have %ci% chances&echo.&goto 1
:o
cls&echo.
echo ============ The password seems correct~~, access granted ============
What I want to ask is, the red part is the password, and it gets displayed directly like this, which isn't good. Is there some way to use variables for it? For example, something like 5*5*5* or an expression like 5+5+5, of course it can be a bit more complex, like exponentiation. How would that be written?? I mainly just want to add a little bit of obfuscation, nothing too complicated, just enough to make other people unable to figure it out
[ Last edited by bowen666 on 2008-3-25 at 10:38 PM ]
