CnPack Forum


 
Subject: [HELP]DES算法问题
jAmEs_
灌水部部长
Rank: 8Rank: 8



Medal No.1  
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
Post at 2009-10-21 15:23  Profile | Blog | P.M. 
[HELP]DES算法问题

我在Delphi使用CnDES算法加密一字符串,在Java也用DES算法按同样的key加密同样的字符串,但是结果不一样,不知道为什么会这样,应该以哪个为准?
注:MD5算法正常。
Top
jAmEs_
灌水部部长
Rank: 8Rank: 8



Medal No.1  
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
Post at 2009-10-23 20:09  Profile | Blog | P.M. 
论坛好冷清现在。。。没有人回一下吗
Top
球球
新警察
Rank: 1



UID 44105
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-10-25
Status Offline
Post at 2009-10-30 22:12  Profile | Blog | P.M. 
是不是需要先行转换成AnsiString??
Top
usenet506
新警察
Rank: 1



UID 44676
Digest Posts 0
Credits 5
Posts 2
点点分 5
Reading Access 10
Registered 2009-11-27
Status Offline
Post at 2009-11-27 13:00  Profile | Blog | P.M. 
关注此问题。
Delphi啥版本?
des在ic卡存储中有应用。
Top
zhqian
普通灌水员
Rank: 2



UID 40650
Digest Posts 0
Credits 81
Posts 28
点点分 81
Reading Access 10
Registered 2008-7-12
Status Offline
Post at 2009-12-27 18:13  Profile | Blog | P.M. 
DES不一样好像是正常的吧,但是反向回来的结果是一样的吧?
Top
jAmEs_
灌水部部长
Rank: 8Rank: 8



Medal No.1  
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
Post at 2009-12-27 18:14  Profile | Blog | P.M. 
没有理解清楚我的意思~~~
因为我希望两边的结果一致,这样我才能两种语言同时使用这个~~~
我已经找到与Delphi版一样的Java版DES算法。。。
Top
 




All times are GMT++8, the time now is 2024-11-22 06:27

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008654 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP