Want to learn how to encrypt batch file with ACII coding....
Posted: 21 Oct 2010 18:22
ok so I just found out about ascii coding and I kind of get it but not really...this is from aGerman jsut copied and pasted it but don't really get exactly how it works at all.....
set /a n=0
:loop
set "hex=!encrypted:~%n%,2!"
if "%hex%"=="" goto exitLoop
set "hex=%hex:~-1%%hex:~,1%"
set /a dec=0x%hex%
cmd /c exit %dec%
set "string=%=exitcodeascii%%string%"
set /a n+=2
goto :loop
:exitLoop
echo\!string!
pause>nul
wondering if someone could explain it to me in lamence terms...
set /a n=0
:loop
set "hex=!encrypted:~%n%,2!"
if "%hex%"=="" goto exitLoop
set "hex=%hex:~-1%%hex:~,1%"
set /a dec=0x%hex%
cmd /c exit %dec%
set "string=%=exitcodeascii%%string%"
set /a n+=2
goto :loop
:exitLoop
echo\!string!
pause>nul
wondering if someone could explain it to me in lamence terms...