批处理写的文件夹加密程序
- 发表于
- 安全工具
这个小东西好像是大一暑假写的,这里面运用了特殊的隐藏技术,功能完全超越了当时网上流行的一款共享软件“文件夹加密大师”。可以满足基本加密需求,放在U盘或者直接把下面代码放在自己博客里面随时备用。
特点:
- 开源,绿色无需安装,体积小巧,不足5kb。
- 自动输出一个小红锁的图标并更改加密目录的图标(包括可移动磁盘文件夹的图标)。
- 加密速度快。
- 加密后目录不能被误删除。
注意:程序不自动加密子目录
把下面的代码用记事本另存为“加密.CMD”放入要加密的目录后打开即可。
可能是我网站对特殊字符转义,直接拷贝下来的代码不能生成图标,其他功能一切正常。你还可以
直接下载打包的源代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
:: RED LOCK :: CODE BY TANGBIN :: WWW.PLANEART.CN :: ----------------------------------------------------------- @ECHO OFF COLOR F8 MODE CON: COLS=50 LINES=1 SET TITLE=小红锁加密程序 SET LOCK=加密 SET KEY=解密 SET TEXT-1=密码不能为空! SET TEXT-2=密码错误! SET TEXT-3=正在执行之中... SET TEXT-4=请解密再操作 SET TEXT-5=密码 SET BOX=LOCK SET NAME=%0 IF NOT EXIST %BOX%\DATA~1\.SCF GOTO LOCK IF EXIST %BOX%\DATA~1\.SCF GOTO KEY :LOCK TITLE %TITLE% [%LOCK%] SET /p T=%TEXT-5%: IF /I "%T%"=="" TITLE %TEXT-1% & PAUSE >NUL & CLS & GOTO LOCK TITLE %LOCK%%TEXT-3% MD %BOX%\DATA MD %BOX%\DATA\%TEXT-4%..\ MD %BOX%\DATA..\ :: ECHO [.SHELLCLASSINFO]>%BOX%\DESKTOP.INI :: ECHO CLSID={35786D3C-B075-49b9-88DD-029876E11C01}>>%BOX%\DESKTOP.INI ECHO %T%>%BOX%\DATA~1\.SCF ATTRIB %NAME% +R +S>NUL ATTRIB %BOX% +R +S +H>NUL IF EXIST DESKTOP.INI ATTRIB DESKTOP.INI -R -S -H>NUL MOVE /Y .\*.* %BOX%\DATA~1>NUL ECHO E 100 00 00 01 00 01 00 20 20 10 00 01 00 04 00 E8 02>>ICO ECHO E 110 00 00 16 00 00 00 28 00 00 00 20 00 00 00 40 00>>ICO ECHO E 120 00 00 01 00 04 00 00 00 00 00 00 00 00 00 13 0B>>ICO ECHO E 130 00 00 13 0B 00 00 10 00 00 00 00 00 00 00 00 00>>ICO ECHO E 140 00 00 FF FF FF 00 23 0D C4 00 00 00 00 00 00 00>>ICO ECHO E 150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00>>ICO ECHO E 180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00>>ICO ECHO E 190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 22>>ICO ECHO E 1A0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 1B0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 1C0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 1D0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 1E0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 1F0 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 200 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 210 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 220 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 230 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 240 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 250 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 260 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 270 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 280 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 290 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO ECHO E 2A0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO ECHO E 2B0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO ECHO E 2C0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO ECHO E 2D0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO ECHO E 2E0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO ECHO E 2F0 22 22 21 11 22 22 22 11 12 22 22 22 22 00 22 22>>ICO ECHO E 300 22 22 21 11 12 22 21 11 12 22 22 22 22 00 22 22>>ICO ECHO E 310 22 22 22 11 11 11 11 11 22 22 22 22 22 00 22 22>>ICO ECHO E 320 22 22 22 21 11 11 11 12 22 22 22 22 22 00 22 22>>ICO ECHO E 330 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 340 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 350 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO ECHO E 360 22 22 22 22 22 22 22 22 22 22 22 22 22 33 22 22>>ICO ECHO E 370 22 22 22 22 22 22 22 22 22 22 22 22 22 33 C0 00>>ICO ECHO E 380 00 00 C0 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 3A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 3B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 3C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 3D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 3E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO ECHO E 3F0 00 00 00 00 00 00 00 00 00 03 00 00 00 03>>ICO ECHO RCX>>ICO ECHO 2FE>>ICO ECHO N ICO2>>ICO ECHO W>>ICO ECHO Q>>ICO DEBUGNUL COPY /B /Y ICO2 LOCK.ICO ATTRIB +R +S +H LOCK.ICO DEL ICO* ECHO [.SHELLCLASSINFO]>DESKTOP.INI ECHO INFOTIP=RED LOCK>>DESKTOP.INI ECHO ICONFILE=LOCK.ICO>>DESKTOP.INI ECHO ICONINDEX=^0>>DESKTOP.INI ATTRIB DESKTOP.INI +R +S +H>NUL ATTRIB "%CD%" +R>NUL ATTRIB %NAME% -R -S MOVE %NAME% %KEY%.CMD & EXIT :KEY TITLE %TITLE% [%KEY%] SET /p T=%TEXT-5%: IF /I "%T%"=="" TITLE %TEXT-1% & PAUSE>NUL & CLS & GOTO KEY TITLE %KEY%%TEXT-3% ECHO %T%>.SCF FC /A .SCF %BOX%\DATA~1\.SCF>NUL GOTO KEY-%ERRORLEVEL% :KEY-1 TITLE %TEXT-2% DEL .SCF PAUSE>NUL GOTO KEY :KEY-0 IF EXIST DESKTOP.INI DEL /F /A DESKTOP.INI IF EXIST LOCK.ICO DEL /F /A LOCK.ICO MOVE /Y %BOX%\DATA~1\* .\>NUL RD /S /Q %BOX% DEL .SCF IF EXIST DESKTOP.INI ATTRIB DESKTOP.INI +R +S +H>NUL RD /S /Q %BOX% ATTRIB %NAME% -R -S MOVE %NAME% %LOCK%.CMD & EXIT :: ----------------------------------------------------------- |
PlaneArt.cn原创作品,自由共享。转载须保留版权连接:http://www.planeart.cn/2009/07/red-lock/
原文连接:批处理写的文件夹加密程序
所有媒体,可在保留署名、
原文连接
的情况下转载,若非则不得使用我方内容。