China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-21 07:39
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] [Discussion] Non-compiled Batch Processing Encryption Scheme and Code DigestI View 110,337 Replies 364
Floor 226 Posted 2007-08-12 13:57 ·  中国 黑龙江 齐齐哈尔 联通
新手上路
Credits 6
Posts 3
Joined 2007-03-28 13:38
19-year member
UID 83185
Gender Male
Status Offline
This is really complicated~
Floor 227 Posted 2007-08-12 14:01 ·  中国 黑龙江 齐齐哈尔 联通
新手上路
Credits 6
Posts 3
Joined 2007-03-28 13:38
19-year member
UID 83185
Gender Male
Status Offline
The Unicode corresponds to 0xFEFF, the Unicode BIG ENDIAN corresponds to 0xFFFE, and the UTF-8 corresponds to 0xBFBBEF. These several bytes are called BOM (byte order mark). If a file has a BOM, Notepad directly uses it to determine the encoding; otherwise, it determines the encoding according to the content of the file.
Floor 228 Posted 2007-08-14 01:17 ·  中国 河南 郑州 联通
新手上路
Credits 6
Posts 3
Joined 2007-08-13 20:35
18-year member
UID 95074
Gender Male
Status Offline
From last year to this year, this post just doesn't sink. It seems that everyone is really concerned about encryption.

I also really want to learn, but after browsing all the posts, I find that none can really achieve encryption.

But the method similar to "variable encryption" like a key should be the most perfect development direction, but no one has made a mature thing yet.

I hope experts can make a tool for key encryption!
Floor 229 Posted 2007-08-14 01:17 ·  中国 河南 郑州 联通
新手上路
Credits 6
Posts 3
Joined 2007-08-13 20:35
18-year member
UID 95074
Gender Male
Status Offline
From last year to this year, this post just doesn't sink. It seems that everyone is really concerned about encryption.

I also really want to learn, but after browsing all the posts, I find that there isn't one that can really achieve encryption.

But the method similar to "variable encryption" like a key should be the most perfect development direction, but now no one has made a mature thing yet.

Hope that experts can make key encryption tools!
Floor 230 Posted 2007-08-15 21:40 ·  中国 湖南 郴州 电信
新手上路
Credits 6
Posts 3
Joined 2007-08-15 21:12
18-year member
UID 95202
Gender Male
Status Offline
Wonderful....
Floor 231 Posted 2007-08-15 21:41 ·  中国 湖南 郴州 电信
新手上路
Credits 6
Posts 3
Joined 2007-08-15 21:12
18-year member
UID 95202
Gender Male
Status Offline
Wonderful...
Floor 232 Posted 2007-08-15 23:54 ·  中国 湖南 郴州 电信
新手上路
Credits 6
Posts 3
Joined 2007-08-15 21:12
18-year member
UID 95202
Gender Male
Status Offline
Hey~~ I don't know, when will this little bird of mine finish digesting?
Floor 233 Posted 2007-08-21 14:45 ·  中国 安徽 马鞍山 电信
初级用户
Credits 32
Posts 19
Joined 2007-08-05 07:24
18-year member
UID 94664
Gender Male
Status Offline
Previously seen, this code seems to be able to encrypt batch processing

author:pengfei@www.cn-dos.net
%%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a
cls
@echo off
color 2a
:start
cls
echo *******************************************************************************
echo * *
echo * BAT 加 密 最 终 版 河源下载站 Www.Cngr.CN *
echo * *
echo *******************************************************************************
echo.
echo.
echo BAT加密最终版为"BAT加密工具"的更新版本, 较上一版加密工具而言有诸多优势:
echo.
echo ★ 可以一次性成功加密任何批处理文件, 更省事.
echo.
echo ★ 可以由您输入任意需要加密的批处理, 加密灵活性更大.
echo.
echo ★ 能够自动判断错误输入, 更加人性化.
echo.
echo 说明: 在下面输入需要加密的批处理文件, 直接输入批处理文件名为加密当前目录下的BAT,也可以带路径指定任意BAT. 当前目录下生成的encrypt.bat文件即为加密的批处理.
echo.
echo 作者:木林森 QQ:573381312 BYE
echo.
echo.
echo.
set /p file=请输入需要加密的批处理后按回车键(q=退出):
if "%file%"=="q" goto quit
echo %file%|findstr /i "\.bat$">nul && goto go
echo %file%|findstr /i "\.cmd$">nul && goto go
cls
echo ==============
echo 请正确输入!
echo ==============
echo.
echo.
echo 按任意键重新输入......
pause>nul
goto start
:go
if not exist "%file%" goto newly
if exist encrypt.bat copy encrypt.bat encryptbak.bat
echo %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a >"%tmp%\encrypt.tmp"
echo cls>>"%tmp%\encrypt.tmp"
type "%file%">>"%tmp%\encrypt.tmp"
setlocal enabledelayedexpansion
for %%i in ("%tmp%\encrypt.tmp") do (
echo %%~zi >nul 2>nul
set size=%%~zi
set num=!size:~-1!
set /a mod=!num!%%2
if !mod! equ 0 (goto even) else (goto odd)
)
:even
copy "%tmp%\encrypt.tmp" encrypt.bat
del "%tmp%\encrypt.tmp"
cls
echo ==========================
echo 恭喜你, 批处理加密成功^^!
echo ==========================
echo.
echo.
echo 按任意键退出......
pause>nul
goto quit
:odd
echo. >>"%tmp%\encrypt.tmp"
copy "%tmp%\encrypt.tmp" encrypt.bat
del "%tmp%\encrypt.tmp"
cls
echo ==========================
echo 恭喜你, 批处理加密成功^^!
echo ==========================
echo.
echo.
echo 按任意键退出......
pause>nul
goto quit
:newly
cls
echo ================================
echo 找不到批处理文件, 请重新输入!
echo ================================
echo.
echo.
echo 按任意键开始......
pause>nul
goto start
:quit
exit
Floor 234 Posted 2007-08-21 14:45 ·  中国 安徽 马鞍山 电信
初级用户
Credits 32
Posts 19
Joined 2007-08-05 07:24
18-year member
UID 94664
Gender Male
Status Offline
Previously seen, this code seems to be able to encrypt batch processing

author:pengfei@www.cn-dos.net
%%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a
cls
@echo off
color 2a
:start
cls
echo *******************************************************************************
echo * *
echo * BAT 加 密 最 终 版 河源下载站 Www.Cngr.CN *
echo * *
echo *******************************************************************************
echo.
echo.
echo BAT加密最终版为"BAT加密工具"的更新版本, 较上一版加密工具而言有诸多优势:
echo.
echo ★ 可以一次性成功加密任何批处理文件, 更省事.
echo.
echo ★ 可以由您输入任意需要加密的批处理, 加密灵活性更大.
echo.
echo ★ 能够自动判断错误输入, 更加人性化.
echo.
echo 说明: 在下面输入需要加密的批处理文件, 直接输入批处理文件名为加密当前目录下的BAT,也可以带路径指定任意BAT. 当前目录下生成的encrypt.bat文件即为加密的批处理.
echo.
echo 作者:木林森 QQ:573381312 BYE
echo.
echo.
echo.
set /p file=请输入需要加密的批处理后按回车键(q=退出):
if "%file%"=="q" goto quit
echo %file%|findstr /i "\.bat$">nul && goto go
echo %file%|findstr /i "\.cmd$">nul && goto go
cls
echo ==============
echo 请正确输入!
echo ==============
echo.
echo.
echo 按任意键重新输入......
pause>nul
goto start
:go
if not exist "%file%" goto newly
if exist encrypt.bat copy encrypt.bat encryptbak.bat
echo %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a %%%%a >"%tmp%\encrypt.tmp"
echo cls>>"%tmp%\encrypt.tmp"
type "%file%">>"%tmp%\encrypt.tmp"
setlocal enabledelayedexpansion
for %%i in ("%tmp%\encrypt.tmp") do (
echo %%~zi >nul 2>nul
set size=%%~zi
set num=!size:~-1!
set /a mod=!num!%%2
if !mod! equ 0 (goto even) else (goto odd)
)
:even
copy "%tmp%\encrypt.tmp" encrypt.bat
del "%tmp%\encrypt.tmp"
cls
echo ==========================
echo 恭喜你, 批处理加密成功^^!
echo ==========================
echo.
echo.
echo 按任意键退出......
pause>nul
goto quit
:odd
echo. >>"%tmp%\encrypt.tmp"
copy "%tmp%\encrypt.tmp" encrypt.bat
del "%tmp%\encrypt.tmp"
cls
echo ==========================
echo 恭喜你, 批处理加密成功^^!
echo ==========================
echo.
echo.
echo 按任意键退出......
pause>nul
goto quit
:newly
cls
echo ================================
echo 找不到批处理文件, 请重新输入!
echo ================================
echo.
echo.
echo 按任意键开始......
pause>nul
goto start
:quit
exit
Floor 235 Posted 2007-08-25 20:49 ·  中国 浙江 杭州 电信
新手上路
Credits 8
Posts 4
Joined 2007-08-24 22:30
18-year member
UID 95776
Gender Male
Status Offline
Can't download.. Depressed because points are insufficient
Floor 236 Posted 2007-08-25 20:49 ·  中国 浙江 杭州 电信
新手上路
Credits 8
Posts 4
Joined 2007-08-24 22:30
18-year member
UID 95776
Gender Male
Status Offline
Can't download. Depressed because of insufficient points
Floor 237 Posted 2007-08-30 00:24 ·  中国 广东 东莞 电信
初级用户
Credits 76
Posts 30
Joined 2007-01-07 11:02
19-year member
UID 75718
Gender Male
Status Offline
Is there any better method?
Floor 238 Posted 2007-08-30 00:28 ·  中国 广东 东莞 电信
初级用户
Credits 76
Posts 30
Joined 2007-01-07 11:02
19-year member
UID 75718
Gender Male
Status Offline
Is there any better way?
Floor 239 Posted 2007-08-30 10:04 ·  中国 北京 朝阳区 联通
银牌会员
★★★
Credits 1,287
Posts 634
Joined 2007-05-02 15:06
19-year member
UID 87277
Gender Male
From cmd.exe
Status Offline
Wow. Why are all the posts repeated!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Floor 240 Posted 2007-08-30 20:03 ·  中国 浙江 宁波 电信
初级用户
Credits 82
Posts 30
Joined 2007-07-03 13:55
18-year member
UID 93029
Gender Male
Status Offline
I'll also give it a boost. Recently, I wrote hundreds of lines of code and also want to encrypt it.
‹ Prev 1 14 15 16 17 18 25 Next ›
Forum Jump: