This package contains a few useful classes that you can use as you wish.
The separate units contain either a short description of which specific
algorithm it implements, or a description of the properties/methods. The rules
used for selecting what to describe and what not to describe is that base
classes are described and specific implementations are just given. This means
that there is no method description of the RC5 class for instance, but there
is one for its base class.
The package has been made by me, Lasse V�gs�ther Karlsen, for
Borland/Inprise Delphi Client/Server 4.x and 3.x.
The algorithms in this package may or may not be impeded by patents and other
rights, and no work has been done on identifying any such restrictions.
If you wish to contact me for reporting bugs, suggesting changes or additions,
my email is lasse.karlsen@c2i.net
The source code contained in this package is hereby released to the public
domain (with any restrictions imposed by patents and rights on various
algorithms) and may be used freely under these terms. If you use code from this
package, please check if the algorithms are free to be used, or if
restrictions are placed on them. I would be happy if you could include my name
somewhere in your product (about box, documentation, source code) if you use
code from here, but of course I can't control this, so let's just say it's up
to you.
No promises is made on this code. I've checked all the algorithms for correctness
against verified data, so the algorithms should be correct, but there may be
bugs lurking which I haven't found yet. I take no responsibility for any
damage that might occur on your system if you use these routines. Having said
that, I think it's extremely unlikely that any bugs should cause other things
than Access Violations, if anything at all, but let's just be on the safe side.
The zLib compression class uses the zLib.dll. zLib is a compression/decompression
library which can be downloaded from the following url:
http://www.cdrom.com/pub/infozip/zlib
The DLL is found by going to the link list near the end of that page and clicking on
the link named "zlib for Windows 95/NT", or by going to this url:
http://www.winimage.com/zLibDll/
There are two demo programs in this package:
StreamFilter.dpr
Shows off how all classes can be used
ComplianceTest.Dpr
If you for instance convert/compile these classes for Delphi 2 you can
use this project to determine if you've got everything correct. It
validates all the classes by doing checksums and using all
encryption algorithms and compression class and checking the result.
This project has been run under both Delphi 4.x and 3.x and the results
are valid.
The classes in this package (and their use) is listed below:
---------------
StreamFilters.pas:
TStringStream
Implements a stream class on top of a string
TBasicStreamFilter
Implements a basic stream filter class
TPartialStream (TBasicStreamFilter)
Implements a stream class that works on parts of a different stream
TPasstruStream (TBasicStreamFilter)
Implements a TBasicStreamFilter descendant that works directly on the
core stream
---------------
zLibStream.pas:
TBasiczLibStream (TBasicStreamFilter)
Basic abstract zLib stream class
TzLibCompressionStream (TBasiczLibStream)
zLib compression stream
TzLibDecompressionStream (TBasiczLibStream)
zLib decompression stream
---------------
zLib.pas:
Contains functions from zLib.dll which you'll need for the zLib compression
classes.
---------------
CryptographyStream.pas:
TBasicCryptographyStream
Basic abstract cryptography stream class
TEncryptionStream (TBasicCryptographyStream)
Encryption stream which uses an Encryption class to encrypt data
TDecryptionStream (TBasicCryptographyStream)
Decryption stream which uses an Encryption class to decrypt data
---------------
Cryptography.pas:
TCryptography
Basic abstract cryptography class
---------------
Blowfish.pas:
TBlowfish (TCryptography)
Implements the blowfish encryption algorithm
---------------
IDEA.pas:
TIDEA (TCryptography)
Implements the IDEA encryption algorithm
---------------
RC5.pas:
TRC5 (TCryptography)
Implements the RC5 encryption algorithm
---------------
Checksum.pas:
TBasicCheckSum
Basic abstract checksum class
TBasicCheckSum8Bit (TBasicCheckSum)
Basic abstract 8-bit checksum class
TBasicCheckSum16Bit (TBasicCheckSum)
Basic abstract 16-bit checksum class
TBasicCheckSum32Bit (TBasicCheckSum)
Basic abstract 32-bit checksum class
TSum8 (TBasicCheckSum8Bit)
Basic 8-bit byte checksum
TSum16 (TBasicCheckSum16Bit)
Basic 16-bit byte checksum
TSum32 (TBasicCheckSum32Bit)
Basic 32-bit byte checksum
---------------
CRC.pas:
TCRC32 (TBasicCheckSum32Bit)
Implements the CRC32 checksum type (as found in PKZIP/WinZip)
---------------
SHA.pas:
TSHA (TBasicCheckSum)
Implements the Secure Hash Algorithm (SHA) checksum algorithm
---------------
MD5.pas:
TMD5 (TBasicCheckSum)
Implements the Message Digest 5 (MD5) checksum algorithm
---------------
PersistentStorage.pas:
TPersistentEnumerator
Implements persistent storage enumerator objects (through IEnumStatStg interface)
TPersistentStorage
Implements persistent storage objects (through IStorage interface)
TPersistentStream (TStream)
Implements persistent stream objects (through IStream interface)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
2004072823340315800.zip (34个子文件)
CheckSumStream.pas 4KB
ComplianceTest.dof 993B
ComplianceTest.dpr 304B
zLibStream.pas 15KB
StreamFilterTest.dsk 5KB
ComplianceForm.dfm 551B
BlowfishData.pas 14KB
StreamFilterTest.cfg 323B
StreamFilterTest.dof 1KB
CRC.pas 8KB
RC5.pas 5KB
ReadMe.Txt 5KB
IDEA.pas 9KB
Cryptography.pas 11KB
StreamFilterTest.dpr 709B
Blowfish.pas 5KB
ComplianceTest.dsk 1KB
CheckSum.pas 8KB
ComplianceTest.cfg 323B
PersistentStorage.pas 19KB
Logging.pas 18KB
AuxFuncs.pas 3KB
CryptographyStream.pas 9KB
SHA.pas 7KB
ComplianceTest.res 876B
MainForm.dfm 4KB
StreamFilterTest.res 876B
RC6.pas 5KB
zlib.dll 53KB
StreamFilters.pas 10KB
zLib.pas 18KB
MD5.pas 10KB
MainForm.pas 10KB
ComplianceForm.pas 5KB
共 34 条
- 1
资源评论
普通网友
- 粉丝: 882
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功