?? des.h
字號(hào):
//////////////////////////////////////////////////////////////////////////
/*
Provided by 王俊川, Northeastern University (www.neu.edu.cn)
Email: blackdrn@sohu.com
This product is free for use.
*/
//////////////////////////////////////////////////////////////////////////
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)的長(zhǎng)度 >= ((datalen+7)/8)*8,即比datalen大的且是8的倍數(shù)的最小正整數(shù)
// In 可以= Out,此時(shí)加/解密后將覆蓋輸入緩沖區(qū)(In)的內(nèi)容
// 當(dāng)keylen>8時(shí)系統(tǒng)自動(dòng)使用3次DES加/解密,否則使用標(biāo)準(zhǔn)DES加/解密.超過(guò)16字節(jié)后只取前16字節(jié)
bool Des_Go(char *Out,char *In,long datalen,const char *Key,int keylen,bool Type = ENCRYPT);
//////////////////////////////////////////////////////////////////////////
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -