|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在实现ERP等高端的ASP应用时,用户需要提供核心的经营资料,需要ASP商有很高的信用度。楼上说交互性不好,太牵强了吧。在微软提供的一套框架中,利用asp做网站,开发效率高,使用人数少,减少不必要的开销。交互性是互动方式,是有开发人员决定的。程序#include<stdio.h>
#include<stdlib.h>
#include<memory.h>
#include<time.h>
#include<errno.h>
#include<string.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<netdb.h>
#include"../md5/md5.h"
#defineT10xd76aa478
#defineT20xe8c7b756
#defineT30x242070db
#defineT40xc1bdceee
#defineT50xf57c0faf
#defineT60x4787c62a
#defineT70xa8304613
#defineT80xfd469501
#defineT90x698098d8
#defineT100x8b44f7af
#defineT110xffff5bb1
#defineT120x895cd7be
#defineT130x6b901122
#defineT140xfd987193
#defineT150xa679438e
#defineT160x49b40821
#defineT170xf61e2562
#defineT180xc040b340
#defineT190x265e5a51
#defineT200xe9b6c7aa
#defineT210xd62f105d
#defineT220x02441453
#defineT230xd8a1e681
#defineT240xe7d3fbc8
#defineT250x21e1cde6
#defineT260xc33707d6
#defineT270xf4d50d87
#defineT280x455a14ed
#defineT290xa9e3e905
#defineT300xfcefa3f8
#defineT310x676f02d9
#defineT320x8d2a4c8a
#defineT330xfffa3942
#defineT340x8771f681
#defineT350x6d9d6122
#defineT360xfde5380c
#defineT370xa4beea44
#defineT380x4bdecfa9
#defineT390xf6bb4b60
#defineT400xbebfbc70
#defineT410x289b7ec6
#defineT420xeaa127fa
#defineT430xd4ef3085
#defineT440x04881d05
#defineT450xd9d4d039
#defineT460xe6db99e5
#defineT470x1fa27cf8
#defineT480xc4ac5665
#defineT490xf4292244
#defineT500x432aff97
#defineT510xab9423a7
#defineT520xfc93a039
#defineT530x655b59c3
#defineT540x8f0ccc92
#defineT550xffeff47d
#defineT560x85845dd1
#defineT570x6fa87e4f
#defineT580xfe2ce6e0
#defineT590xa3014314
#defineT600x4e0811a1
#defineT610xf7537e82
#defineT620xbd3af235
#defineT630x2ad7d2bb
#defineT640xeb86d391
staticvoidmd5_process(md5_state_t*pms,constmd5_byte_t*data/*[64]*/)
{
md5_word_t
a=pms->abcd[0],b=pms->abcd[1],
c=pms->abcd[2],d=pms->abcd[3];
md5_word_tt;
#ifndefARCH_IS_BIG_ENDIAN
#defineARCH_IS_BIG_ENDIAN1/*slower,defaultimplementation*/
#endif
#ifARCH_IS_BIG_ENDIAN
/*
*Onbig-endianmachines,wemustarrangethebytesintheright
*order.(Thisalsoworksonmachinesofunknownbyteorder.)
*/
md5_word_tX[16];
constmd5_byte_t*xp=data;
inti;
for(i=0;i<16;++i,xp+=4)
X[i]=xp[0]+(xp[1]<<8)+(xp[2]<<16)+(xp[3]<<24);
#else/*!ARCH_IS_BIG_ENDIAN*/
/*
*Onlittle-endianmachines,wecanprocessproperlyaligneddata
*withoutcopyingit.
*/
md5_word_txbuf[16];
constmd5_word_t*X;
if(!((data-(constmd5_byte_t*)0)&3)){
/*dataareproperlyaligned*/
X=(constmd5_word_t*)data;
}else{
/*notaligned*/
memcpy(xbuf,data,64);
X=xbuf;
}
#endif
#defineROTATE_LEFT(x,n)(((x)<<(n))|((x)>>(32-(n))))
/*Round1.*/
/*Let[abcdksi]denotetheoperation
a=b+((a+F(b,c,d)+X[k]+T[i])<<<s).*/
#defineF(x,y,z)(((x)&(y))|(~(x)&(z)))
#defineSET(a,b,c,d,k,s,Ti)
t=a+F(b,c,d)+X[k]+Ti;
a=ROTATE_LEFT(t,s)+b
/*Dothefollowing16operations.*/
SET(a,b,c,d,0,7,&n</p>我想详细了解ASP整站代码与PSP整站代码有什么优缺点,那个更好,更安全,更用容易维护,和管理。。。 |
|