Delphi 的一个加密和压缩组件 (用于DataSnap多层程序中)

DSFC -- DataSanp过滤和压缩系列,由九个过滤器组成,是为Delphi2010版定制的。过滤器分下面三组:

HASH

  • MD5
  • MD4
  • SHA1
  • SHA512

CIPHER

  • Blowfish
  • Rijndael
  • 3TDES
  • 3DES

COMPRESS

  • LZO

HASH filters  哈希过滤器

The HASH filters helps avoid to any spiteful person to modify datasnap message through an “Man in the middle” attack (http://en.wikipedia.org/wiki/Man-in-the-middle_attack). Functioning is basing on an easy principle. After sending the message, the filter calculates the hash of the message and tags along it to the message. When the message gets to destination, the filter recovers the hash calculated by the client and recalculates it on the remaining part of the message. If the part of the extrated hash (calculated at the beginning) and the hash recalculated to the end are equal, the message hasn’t change. To avoid someone could modify the message and also recalculates the hash, after calculating the hash, a GUID is tagged along to the message, which just the sender and the receiver know. This kind of filters DOES NOT AVOID THE UNAVOIDED READING OF DATA,it avoids just the modification.

 

哈希过滤器的目的不是为了防止数据被读取,而是防止被修改。(保持数据为原始的完整的)

CIPHER filters 加密过滤器

The CIPHER filters are the most interesting filters. Many datasnap users have requested a built-in system to get the data transmission safe. This set of filters colud be the answer. In the actual version I’ve implemented Symmetric-key algorithms. Maybe I’m going to develop of Asymmetric-key algorithms filters. Implemented algorithms features are well known, I list them as follows just to be completed:

Blowfish Blowfish has a 64-bit block size and a variable key length from 32 up to 448 bits. The filter version has a keysize = 56 byte.

Rijndael AES Round 2. AES has a fixed block size of 128 bits and a key size of 128, 192, or 256 bits, whereas Rijndael can be specified with block and key sizes in any multiple of 32 bits, with a minimum of 128 bits and a maximum of 256 bits. The filter version has a keysize = 32 byte.

3TDES Triple DES with 24 byte Blocksize, 24 byte Keysize 168 bits relevant The filter version has a keysize = 24 byte.

3DES Triple DES with 8 byte Blocksize, 24 byte Keysize 168 bits relevant The filter version has a keysize = 24 byte.

加密过滤器提供了内建的加密支持,保证数据传输安全。这套组件中支持Blowfish  Rijndael 和DES算法的加密。

 

COMPRESS filters 压缩过滤器

Actually the LZO compression is the only one that exists, and is one of the faster compression algorithms. The compression ratio compared to the ZLib is worse but about 3 times faster.

read more at http://www.danieleteti.it/?p=168

LZO压缩率较ZLib差一些,但是速度是后者三倍。

 

 

 

 

下载地址  : Delphi DataSnap加密压缩组件

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值