FileTrick

所属分类:Windows编程
开发工具:Visual C++
文件大小:110KB
下载次数:5
上传日期:2006-04-30 10:02:29
上 传 者luoyt99
说明:  1.程序的设计思路 该程序用于对一个文件夹下的所有文件进行扰乱,使程序打不开(文本文件除外)。 扰乱算法,是把每个源文件的头部500字节保存到一个目的文件中,并记录该源文件文件名于目的文件中,源文件中的头部500字节用0代替。而目的文件为每个源文件提供的1k的固定长度存放头部500字节和源文件的文件名,源文件的修改后文件名为其信息在目的文件中的偏移序号,并且以.trick为后缀。 复原算法,就是以上过程的逆过程。 另外,考虑到文件扰乱的权限问题,本程序在执行扰乱时需要设置口令,执行复原时需要输入口令。
(1. The design ideas for the program to a folder of all documents disruption, that process can not be opened (except for text files). Disrupt algorithm, is the source of each document in the head 500 bytes to preserve a purpose document, and the record of the source file name to its purpose document, the source of 500 bytes with the head instead of 0. The purpose document for each source document for the 1k fixed length of 500 bytes stored on his head and source files, and the source document after document, entitled amend its information in the document aims offset serial number, and to. trick for the suffix. Recovery algorithm, the above process is the reverse process. Moreover, given the document's power to disrupt, the proceedings at the disruption in the implementation of the need )

文件列表:
FileTrick (0, 2006-04-30)
FileTrick\cursor1.cur (2558, 2006-02-25)
FileTrick\Dlg.h (2269, 2006-02-25)
FileTrick\dlldata.c (839, 2006-02-25)
FileTrick\FileTrick.aps (7824, 2006-02-25)
FileTrick\FileTrick.clw (850, 2006-02-25)
FileTrick\FileTrick.cpp (1961, 2006-02-25)
FileTrick\FileTrick.def (226, 2006-02-25)
FileTrick\FileTrick.dll (311352, 2006-02-25)
FileTrick\FileTrick.dsp (13079, 2006-02-25)
FileTrick\FileTrick.dsw (543, 2006-02-25)
FileTrick\FileTrick.h (6768, 2006-02-25)
FileTrick\FileTrick.idl (842, 2006-02-25)
FileTrick\FileTrick.ncb (50176, 2006-02-25)
FileTrick\FileTrick.opt (50688, 2006-02-25)
FileTrick\FileTrick.plg (1581, 2006-02-25)
FileTrick\FileTrick.rc (5262, 2006-02-25)
FileTrick\FileTrick.tlb (1740, 2006-02-25)
FileTrick\FileTrickps.def (251, 2006-02-25)
FileTrick\FileTrickps.mk (478, 2006-02-25)
FileTrick\FileTrick_i.c (1134, 2006-02-25)
FileTrick\FileTrick_p.c (8575, 2006-02-25)
FileTrick\Resource.h (997, 2006-02-25)
FileTrick\StdAfx.cpp (315, 2006-02-25)
FileTrick\StdAfx.h (929, 2006-02-25)
FileTrick\Trick.cpp (10415, 2006-02-25)
FileTrick\Trick.h (2023, 2006-02-25)
FileTrick\Trick.rgs (613, 2006-02-25)

1.程序的设计思路 该程序用于对一个文件夹下的所有文件进行扰乱,使程序打不开(文本文件除外)。 扰乱算法,是把每个源文件的头部500字节保存到一个目的文件中,并记录该源文件文件名于目的文件中,源文件中的头部500字节用0代替。而目的文件为每个源文件提供的1k的固定长度存放头部500字节和源文件的文件名,源文件的修改后文件名为其信息在目的文件中的偏移序号,并且以.trick为后缀。 复原算法,就是以上过程的逆过程。 另外,考虑到文件扰乱的权限问题,本程序在执行扰乱时需要设置口令,执行复原时需要输入口令。 2.文件说明 目的文件名为zxcbnm 口令文件为psw,口令在保存到psw中时只作了简单的处理,如果对安全性有很高的要求,建议采用一些安全性比较高的算法。 本程序编译以后产生FileTrick.dll文件,它是一个COM组件。 3.添加到shell 为了在Windows Shell中可以方便地使用这个COM组件,需要有一下几个步骤: A.本程序是进程内服务程序,运行regsvr32进行注册(注:在VC编译器中,COM组件在编译时会自动调用regsvr32进行注册,请看工程配置文件),例如,该组件已COPY至C:\WinNT\System32下,我们将输入如下命令行注册: regsvr32 C:\winnt\system32\FileTrick.dll B.因为是对文件夹统计,所以还需在HKEY_CLASSES_ROOT\Directory\Shellex\ContextMenuHandlers\ 下新建一项,命名为FileTrick,它的默认键值是组件的GUID,这里为{362ACDFA-09DC-4C22-8874-862D948D48FD} 4.大功告成 在某个文件上右击,在弹出菜单中可以看到加密项,然后设置密码就可以对该文件夹下所有的文件进行加密了。 如果是已经加密过的文件夹,弹出菜单中会提示输入密码,密码正确即可复原文件夹中的内容。 5.开发环境 VC6.0+ATL

近期下载者

相关文件


收藏者