- 相關(guān)推薦
網(wǎng)頁編輯筆試真題
intencode(constvoid*raw_in,void*raw_out,uint32_tpassword,size_tlen)
{
constuint8_t*in=(constuint8_t*)raw_in;
uint8_t*out=(uint8_t*)raw_out;
uint32_tseed=password^0x42381238u;
for(size_ti=0;i
uint8_ta=(in[i]^seed)>>2;
uint8_tb=((((uint32_t)in[i])<<10)^seed)>>(10-6);
a&=63;
b&=192;
a=63&(a^(b<<3));
out[i]=a|b;
seed=(((seed<<7)^seed^in[i])+48475829);
}
return0;
}
intdecode(constvoid*raw_in,void*raw_out,uint32_tpassword,size_tlen)
{
constuint8_t*in=(constuint8_t*)raw_in;
uint8_t*out=(uint8_t*)raw_out;
uint32_tseed=password^0x42381238u;
for(size_ti=0;i
//請在此處補全代碼
}
}
intmain()
{
constuint8_tbuf1[]={0xf5,0x3b,0x3a,0x0d,0x54,0x73,0x34,0xfe,0x5d,0x72,0x2d,0x8b,0xca,0x1d,0xdb,
0xd4,0x94,0xfa,0x88,0xae,0x51,0x4f,0x85,0x38,0x96,0x33,0xf1,0xa3,0x41,0xf9,0xc8,0x67,0xfc,0x01,0xc7,0xdd,0x22,0xe7,0xbd,0x83,};
uint8_tbuf2[100]={};
constuint32_tpassword=0x266d183bu;
constsize_tlen=sizeof(buf1);
encode(buf1,buf2,password,len);
printf("%s\n",buf2);
}
求哈希解碼算法
【網(wǎng)頁編輯筆試真題】相關(guān)文章:
家樂福筆試真題07-01
招商證券筆試真題10-01
金蝶公司筆試真題06-08
遠(yuǎn)洋地產(chǎn)筆試真題08-18
箭牌的經(jīng)典筆試真題09-26
第一財經(jīng)日報筆試真題08-06
中國銀行校園招聘筆試真題07-30
公衛(wèi)執(zhí)業(yè)醫(yī)師筆試真題題目06-30
交通銀行筆試(機試)真題07-19
新浪編輯筆試07-28