|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
因为现在数据库都使用标准的SQL语言对数据库进行管理,所以如果是标准SQL语言,两者基本上都可以通用的。SQLServer还有更多的扩展,可以用存储过程,数据库大小无极限限制。/*
Copyright(C)1999AladdinEnterprises.Allrightsreserved.
Thissoftwareisprovidedas-is,withoutanyexpressorimplied
warranty.Innoeventwilltheauthorsbeheldliableforanydamages
arisingfromtheuseofthissoftware.
Permissionisgrantedtoanyonetousethissoftwareforanypurpose,
includingcommercialapplications,andtoalteritandredistributeit
freely,subjecttothefollowingrestrictions:
1.Theoriginofthissoftwaremustnotbemisrepresented;youmustnot
claimthatyouwrotetheoriginalsoftware.Ifyouusethissoftware
inaproduct,anacknowledgmentintheproductdocumentationwouldbe
appreciatedbutisnotrequired.
2.Alteredsourceversionsmustbeplainlymarkedassuch,andmustnotbe
misrepresentedasbeingtheoriginalsoftware.
3.Thisnoticemaynotberemovedoralteredfromanysourcedistribution.
L.PeterDeutsch
ghost@aladdin.com
*/
/*$Id:md5.h$*/
/*
IndependentimplementationofMD5(RFC1321).
ThiscodeimplementstheMD5AlgorithmdefinedinRFC1321.
ItisderiveddirectlyfromthetextoftheRFCandnotfromthe
referenceimplementation.
Theoriginalandprincipalauthorofmd5.hisL.PeterDeutsch
<ghost@aladdin.com>.Otherauthorsarenotedinthechangehistory
thatfollows(inreversechronologicalorder):
1999-11-04lpdEditedcommentsslightlyforautomaticTOCextraction.
1999-10-18lpdFixedtypoinheadercomment(ansi2knrratherthanmd5);
addedconditionalizationforC++compilationfromMartin
Purschke<purschke@bnl.gov>.
1999-05-03lpdOriginalversion.
*/
#ifndefmd5_INCLUDED
#definemd5_INCLUDED
/*
*ThiscodehassomeadaptationsfortheGhostscriptenvironment,butit
*willcompileandruncorrectlyinanyenvironmentwith8-bitcharsand
*32-bitints.Specifically,itassumesthatifthefollowingare
*defined,theyhavethesamemeaningasinGhostscript:P1,P2,P3,
*ARCH_IS_BIG_ENDIAN.
*/
typedefunsignedcharmd5_byte_t;/*8-bitbyte*/
typedefunsignedintmd5_word_t;/*32-bitword*/
/*DefinethestateoftheMD5Algorithm.*/
typedefstructmd5_state_s{
md5_word_tcount[2];/*messagelengthinbits,lswfirst*/
md5_word_tabcd[4];/*digestbuffer*/
md5_byte_tbuf[64];/*accumulateblock*/
}md5_state_t;
#ifdef__cplusplus
extern"C"
{
#endif
/*Initializethealgorithm.*/
#ifdefP1
voidmd5_init(P1(md5_state_t*pms));
#else
voidmd5_init(md5_state_t*pms);
#endif
/*Appendastringtothemessage.*/
#ifdefP3
voidmd5_append(P3(md5_state_t*pms,constmd5_byte_t*data,intnbytes));
#else
voidmd5_append(md5_state_t*pms,constmd5_byte_t*data,intnbytes);
#endif
/*Finishthemessageandreturnthedigest.*/
#ifdefP2
voidmd5_finish(P2(md5_state_t*pms,md5_byte_tdigest[16]));
#else
voidmd5_finish(md5_state_t*pms,md5_byte_tdigest[16]);
#endif
#ifdef__cplusplus
}/*endextern"C"*/
#endif
#endif/*md5_INCLUDED*/
</p>缺点:安全性不是太差了,还行,只要你充分利用系统自带的工具;唯一缺点就是执行效率慢,如何进行网站优化以后,效果会比较好。 |
|