请高手帮我写段pds引擎做整个文件或磁盘加密的批处理

来源:百度知道 编辑:UC知道 时间:2024/06/28 09:13:10
PDS的加密速度很可观,大概20M每秒,可惜我批处理太菜 网上的例子又太简单,请高手指教

下载的软件包只给了一点提示,我这个菜鸟实在不知如何用处理来加密整个文件夹,请帮高手给我些个对整个
文件夹的文件进行加密的BAT,谢谢

软件自己带的介绍太少了 在hi.baidu.com/chinapgp上

About Personal Data Security(PDS)
===============================================================================
PDS commandline block cipher engine.
ChinaPGP (http://hi.baidu.com/chinaPGP) All right reserved.2008
PDS uses the popular algorithms IDEA to cipher over 10 MB user data per second.

Usage of PDS:

Example:
(If PDS.exe on path C:\) User only need to type
C:\PDS [filename] [user passwords]
then press [ENTER] key.
[filename]-- is the name of the file which user want to cipher or decipher.
[user passwords]-- is your passwords.

范例程序也过分简单,基本没用
@echo off
copy pds.exe %systemroot%\pds.exe
@echo on
pds test.txt &

应用PDS加密引擎以交互方式加密指定路径下的所有给定类型的文件
title 应用PDS加密引擎以交互方式加密指定路径下的所有给定类型的文件
cls
@echo==============================================================%
:RETYPE
@echo 请选择对文件进行加密(按"E"),解密(按"D"):
@echo off
set /p type=
if %type% == E goto ENCRYPT
if %type% == e goto ENCRYPT
if %type% == D goto DECRYPT
if %type% == d goto DECRYPT
goto RETYPE
@echo on

:ENCRYPT
@echo 请输入需要加密的文件夹的路径:(当前路径请直接按回车)
@echo off
set /p cipherpath=
cd %cipherpath%
@echo on

:SET_PASSWORDS
@echo 请输入加密密码:
@echo off
set /p passwords=
@echo on

@echo 请再次输入加密密码,进行确认:
@echo off
set /p passwords2=
@echo on
@echo off
if not %passwords%== %passwords2% goto MISMATCH
@echo on

@echo 请输入需要加密的文件类型:
@echo (例如:加密全部文本文件,请输入*.txt,加密全部文件请输入*.*)
@echo off
set /p filetype=
@echo on