Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» cnMd5无法计算空文件
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: cnMd5无法计算空文件
npc8
灌水科科长
UID 65881
Digest Posts 0
Credits 115
Posts 37
点点分 115
Reading Access 10
Registered 2011-5-26
Status Offline
#1
Post at 2017-1-13 13:31
Profile
|
Blog
|
P.M.
cnMd5无法计算空文件
当前cnmd5 计算空文件会报错
1. 空文件走的是createmapping,但是空文件无法createmapping,可以用TFileStream来计算
2. InternalMD5Stream内直接跳过了大小为0 的stream,其实应该是执行 MD5Init MD5Final 两个步骤,得到 d41d8cd98f00b204e9800998ecf8427e
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2017-10-21 20:11
Profile
|
Blog
|
P.M.
有道理,我改进一下。
不光MD5,其余的散列算法都要这样改进。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2017-10-21 22:45
Profile
|
Blog
|
P.M.
之前已经改进过了。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 01:10
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.006479 second(s), 7 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats