?? des.h
字號:
enum {ENCRYPT,DECRYPT};
//enum bool{false,true}; // if bool is not supported,use this or just replace with char
// and use 1 for true,0 for false;
//////////////////////////////////////////////////////////////////////////
// Type—ENCRYPT:加密,DECRYPT:解密
// 輸出緩沖區(qū)(Out)的長度 >= ((datalen+7)/8)*8,即比datalen大的且是8的倍數(shù)的最小正整數(shù)
// In 可以= Out,此時加/解密后將覆蓋輸入緩沖區(qū)(In)的內(nèi)容
// 當(dāng)keylen>8時系統(tǒng)自動使用3次DES加/解密,否則使用標(biāo)準(zhǔn)DES加/解密.超過16字節(jié)后只取前16字節(jié)
bool Des_Go(char *Out,char *In,long datalen,const char *Key,int keylen,bool Type = ENCRYPT);
//////////////////////////////////////////////////////////////////////////
void ByteToBit(bool *Out, const char *In, int bits);// 字節(jié)組轉(zhuǎn)換成位組
void BitToByte(char *Out, const bool *In, int bits);// 位組轉(zhuǎn)換成字節(jié)組
unsigned char GetByte(char *s);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -