當前位置:首頁 » 密碼管理 » md5加密dll

md5加密dll

發布時間: 2022-10-02 19:22:50

『壹』 MD5做成DLL插件加密安全嘛

樓上是SB
加密三次可以的了,想知道加密多少次要費很多時間,解密的不一定知道是用MD5加密的啊,你如果還不肯定安全不,你可以第一次加密後取中間幾位數再加密一次這樣就更安全了。

『貳』 delphi 中的 MD5 加密怎麼用

1.在Delphi自帶的Indy控制項中其實是提供了MD2,MD4,MD5對象的,可以直接使用來完成MD5的簽名演算法。不需要DLL或是Pas。 2.在Uses單元中引用 IdHashMessageDigest,IdGlobal, IdHash 單元,再寫如下代碼即可以達到MD5的實現。

『叄』 C#中dll該如何聲明及調用

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSpxfer( [In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwPendingXfers pxfr );

[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern IntPtr GlobalAlloc( int flags, int size );

『肆』 幫忙破解一個MD5,

幫你跑了,沒跑出來。。。。。。。

不過給你提供一個方法,來破解綠壩:

綠壩的管理密碼,通過類似於MD5的加密之後,儲存在WINDOWS/system32/kwpwf.dll文件中,搞笑的是該文件並沒有收到任何程序的保護,單憑一記事本就可以大改其中內容。我們只要把知道密碼的綠壩的WINDOWS/system32/kwpwf.dll文件中的內容復制到不知道密碼的那個綠壩的WINDOWS/system32/kwpwf.dll下,就相當於改變其密碼了。也就是說,我們只要把WINDOWS/system32/kwpwf.dll的內容改為「」,那麼綠壩的管理密碼就變回了默認的112233。

也就是說你破解它的時候,就將此MD5散列""替換掉原先的,不用的時候在替換回去即可~
希望對你能有所幫助。

『伍』 求md5批量加密的工具,要能保存加密出來的密文,密文與明文對應的....生成資料庫也行!

3.120 icePub_getMD5FromString

l 函數原型:
int WINAPI icePub_getMD5FromString(char *strData,char *strResult)
輸入:strData 待處理的文本串
輸出:strResult MD5結果串,32位元組
返回碼:

l VC連接Lib方式聲明
__declspec(dllexport)
int WINAPI icePub_getMD5FromString(char *strData,char *strResult);

l 動態調用常式
VC sample代碼:
char buff[1024];
char buff2[1024];

strcpy(buff2,"Walk At Familiar Alley, Pursue Concordand's Footfall, Between Front And Back, What Course To Follow?");

typedef int (WINAPI ICEPUB_GETMD5FROMSTRING)(char *strData,char *strResult);
ICEPUB_GETMD5FROMSTRING *icePub_getMD5FromString = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_getMD5FromString=(ICEPUB_GETMD5FROMSTRING *)GetProcAddress(hDLLDrv,"icePub_getMD5FromString");
}
if(icePub_getMD5FromString)
icePub_getMD5FromString(buff2,buff);
if(hDLLDrv)
FreeLibrary(hDLLDrv);

AfxMessageBox(buff);

VB sample 代碼:
Private Declare Function icePub_getMD5FromString Lib "icePubDll.dll" (ByVal strData As String, ByVal strResult As String) As Integer

Dim a2 As Integer
Dim buff As String
Dim buff2 As String

buff2="Go with This life Loneliness, carried off Day And Night Dreariness, Between Sun And Moon, Tell Words from one's heart Each Other."
buff=Space(1024)
a2=icePub_getMD5FromString(buff2,buff)

MsgBox buff

http://dl.icese.net/dev.php?f=icePubDll.rar 下載

『陸』 C#中怎樣實現MD5加密MD5中加密演算法16位加密演算法與32位加密演算法怎麼實現

作者:FlyMe聯系方式:7826-45-210 707-628-841 public class md5 {
//static state variables
private static uint32 a;
private static uint32 b;
private static uint32 c;
private static uint32 d;

//number of bits to rotate in tranforming
private const int s11 = 7;
private const int s12 = 12;
private const int s13 = 17;
private const int s14 = 22;
private const int s21 = 5;
private const int s22 = Array;
private const int s23 = 14;
private const int s24 = 20;
private const int s31 = 4;
private const int s32 = 11;
private const int s33 = 16;
private const int s34 = 23;
private const int s41 = 6;
private const int s42 = 10;
private const int s43 = 15;
private const int s44 = 21;

/* f, g, h and i are basic md5 functions.
* 四個非線性函數:
*
* f(x,y,z) =(x&y)|((~x)&z)
* g(x,y,z) =(x&z)|(y&(~z))
* h(x,y,z) =x^y^z
* i(x,y,z)=y^(x|(~z))
*
* (&與,|或,~非,^異或)
*/
private static uint32 f(uint32 x,uint32 y,uint32 z){
return (x&y)|((~x)&z);
}
private static uint32 g(uint32 x,uint32 y,uint32 z){
return (x&z)|(y&(~z));
}
private static uint32 h(uint32 x,uint32 y,uint32 z){
return x^y^z;
}
private static uint32 i(uint32 x,uint32 y,uint32 z){
return y^(x|(~z));
}

/* ff, gg, hh, and ii transformations for rounds 1, 2, 3, and 4.
* rotation is separate from addition to prevent recomputation.
*/
private static void ff(ref uint32 a,uint32 b,uint32 c,uint32 d,uint32 mj,int s,uint32 ti){
a = a + f(b,c,d) + mj + ti;
a = a << s | a >> (32-s);
a += b;
}
private static void gg(ref uint32 a,uint32 b,uint32 c,uint32 d,uint32 mj,int s,uint32 ti){
a = a + g(b,c,d) + mj + ti;
a = a << s | a >> (32-s);
a += b;
}
private static void hh(ref uint32 a,uint32 b,uint32 c,uint32 d,uint32 mj,int s,uint32 ti){
a = a + h(b,c,d) + mj + ti;
a = a << s | a >> (32-s);
a += b;
}
private static void ii(ref uint32 a,uint32 b,uint32 c,uint32 d,uint32 mj,int s,uint32 ti){
a = a + i(b,c,d) + mj + ti;
a = a << s | a >> (32-s);
a += b;
}

private static void md5_init(){
a=0x67452301; //in memory, this is 0x01234567
b=0xefcdab8Array; //in memory, this is 0x8Arrayabcdef
c=0xArray8badcfe; //in memory, this is 0xfedcbaArray8
d=0x10325476; //in memory, this is 0x76543210
}

private static uint32[] md5_append(byte[] input){
int zeros=0;
int ones =1;
int size=0;
int n = input.length;
int m = n%64;
if( m < 56 ){
zeros = 55-m;
size=n-m+64;
}
else if (m==56){
zeros = 0;
ones = 0;
size=n+8;
}
else{
zeros = 63-m+56;
size=n+64-m+64;
}

arraylist bs = new arraylist(input);
if(ones==1){
bs.add( (byte)0x80 ); // 0x80 = $10000000
}
for(int i=0;i<zeros;i++){
bs.add( (byte)0 );
}

uint64 n = (uint64) n * 8;
byte h1=(byte)(n&0xff);
byte h2=(byte)((n>>8)&0xff);
byte h3=(byte)((n>>16)&0xff);
byte h4=(byte)((n>>24)&0xff);
byte h5=(byte)((n>>32)&0xff);
byte h6=(byte)((n>>40)&0xff);
byte h7=(byte)((n>>48)&0xff);
byte h8=(byte)(n>>56);
bs.add(h1);
bs.add(h2);
bs.add(h3);
bs.add(h4);
bs.add(h5);
bs.add(h6);
bs.add(h7);
bs.add(h8);
byte[] ts=(byte[])bs.toarray(typeof(byte));

/* decodes input (byte[]) into output (uint32[]). assumes len is
* a multiple of 4.
*/
uint32[] output = new uint32[size/4];
for(int64 i=0,j=0;i<size;j++,i+=4){
output[j]=(uint32)(ts[i] | ts[i+1]<<8 | ts[i+2]<<16 | ts[i+3]<<24);
}
return output;
}
private static uint32[] md5_trasform(uint32[] x){

uint32 a,b,c,d;

for(int k=0;k<x.length;k+=16){
a=a;
b=b;
c=c;
d=d;

/* round 1 */
ff (ref a, b, c, d, x[k+ 0], s11, 0xd76aa478); /* 1 */
ff (ref d, a, b, c, x[k+ 1], s12, 0xe8c7b756); /* 2 */
ff (ref c, d, a, b, x[k+ 2], s13, 0x242070db); /* 3 */
ff (ref b, c, d, a, x[k+ 3], s14, 0xc1bdceee); /* 4 */
ff (ref a, b, c, d, x[k+ 4], s11, 0xf57c0faf); /* 5 */
ff (ref d, a, b, c, x[k+ 5], s12, 0x4787c62a); /* 6 */
ff (ref c, d, a, b, x[k+ 6], s13, 0xa8304613); /* 7 */
ff (ref b, c, d, a, x[k+ 7], s14, 0xfd46Array501); /* 8 */
ff (ref a, b, c, d, x[k+ 8], s11, 0x6Array80Array8d8); /* Array */
ff (ref d, a, b, c, x[k+ Array], s12, 0x8b44f7af); /* 10 */
ff (ref c, d, a, b, x[k+10], s13, 0xffff5bb1); /* 11 */
ff (ref b, c, d, a, x[k+11], s14, 0x8Array5cd7be); /* 12 */
ff (ref a, b, c, d, x[k+12], s11, 0x6bArray01122); /* 13 */
ff (ref d, a, b, c, x[k+13], s12, 0xfdArray871Array3); /* 14 */
ff (ref c, d, a, b, x[k+14], s13, 0xa67Array438e); /* 15 */
ff (ref b, c, d, a, x[k+15], s14, 0x4Arrayb40821); /* 16 */

/* round 2 */
gg (ref a, b, c, d, x[k+ 1], s21, 0xf61e2562); /* 17 */
gg (ref d, a, b, c, x[k+ 6], s22, 0xc040b340); /* 18 */
gg (ref c, d, a, b, x[k+11], s23, 0x265e5a51); /* 1Array */
gg (ref b, c, d, a, x[k+ 0], s24, 0xeArrayb6c7aa); /* 20 */
gg (ref a, b, c, d, x[k+ 5], s21, 0xd62f105d); /* 21 */
gg (ref d, a, b, c, x[k+10], s22, 0x2441453); /* 22 */
gg (ref c, d, a, b, x[k+15], s23, 0xd8a1e681); /* 23 */
gg (ref b, c, d, a, x[k+ 4], s24, 0xe7d3fbc8); /* 24 */
gg (ref a, b, c, d, x[k+ Array], s21, 0x21e1cde6); /* 25 */
gg (ref d, a, b, c, x[k+14], s22, 0xc33707d6); /* 26 */
gg (ref c, d, a, b, x[k+ 3], s23, 0xf4d50d87); /* 27 */
gg (ref b, c, d, a, x[k+ 8], s24, 0x455a14ed); /* 28 */
gg (ref a, b, c, d, x[k+13], s21, 0xaArraye3eArray05); /* 2Array */
gg (ref d, a, b, c, x[k+ 2], s22, 0xfcefa3f8); /* 30 */
gg (ref c, d, a, b, x[k+ 7], s23, 0x676f02dArray); /* 31 */
gg (ref b, c, d, a, x[k+12], s24, 0x8d2a4c8a); /* 32 */

/* round 3 */
hh (ref a, b, c, d, x[k+ 5], s31, 0xfffa3Array42); /* 33 */
hh (ref d, a, b, c, x[k+ 8], s32, 0x8771f681); /* 34 */
hh (ref c, d, a, b, x[k+11], s33, 0x6dArrayd6122); /* 35 */
hh (ref b, c, d, a, x[k+14], s34, 0xfde5380c); /* 36 */
hh (ref a, b, c, d, x[k+ 1], s31, 0xa4beea44); /* 37 */
hh (ref d, a, b, c, x[k+ 4], s32, 0x4bdecfaArray); /* 38 */
hh (ref c, d, a, b, x[k+ 7], s33, 0xf6bb4b60); /* 3Array */
hh (ref b, c, d, a, x[k+10], s34, 0xbebfbc70); /* 40 */
hh (ref a, b, c, d, x[k+13], s31, 0x28Arrayb7ec6); /* 41 */
hh (ref d, a, b, c, x[k+ 0], s32, 0xeaa127fa); /* 42 */
hh (ref c, d, a, b, x[k+ 3], s33, 0xd4ef3085); /* 43 */
hh (ref b, c, d, a, x[k+ 6], s34, 0x4881d05); /* 44 */
hh (ref a, b, c, d, x[k+ Array], s31, 0xdArrayd4d03Array); /* 45 */
hh (ref d, a, b, c, x[k+12], s32, 0xe6dbArrayArraye5); /* 46 */
hh (ref c, d, a, b, x[k+15], s33, 0x1fa27cf8); /* 47 */
hh (ref b, c, d, a, x[k+ 2], s34, 0xc4ac5665); /* 48 */

/* round 4 */
ii (ref a, b, c, d, x[k+ 0], s41, 0xf42Array2244); /* 4Array */
ii (ref d, a, b, c, x[k+ 7], s42, 0x432affArray7); /* 50 */
ii (ref c, d, a, b, x[k+14], s43, 0xabArray423a7); /* 51 */
ii (ref b, c, d, a, x[k+ 5], s44, 0xfcArray3a03Array); /* 52 */
ii (ref a, b, c, d, x[k+12], s41, 0x655b5Arrayc3); /* 53 */
ii (ref d, a, b, c, x[k+ 3], s42, 0x8f0cccArray2); /* 54 */
ii (ref c, d, a, b, x[k+10], s43, 0xffeff47d); /* 55 */
ii (ref b, c, d, a, x[k+ 1], s44, 0x85845dd1); /* 56 */
ii (ref a, b, c, d, x[k+ 8], s41, 0x6fa87e4f); /* 57 */
ii (ref d, a, b, c, x[k+15], s42, 0xfe2ce6e0); /* 58 */
ii (ref c, d, a, b, x[k+ 6], s43, 0xa3014314); /* 5Array */
ii (ref b, c, d, a, x[k+13], s44, 0x4e0811a1); /* 60 */
ii (ref a, b, c, d, x[k+ 4], s41, 0xf7537e82); /* 61 */
ii (ref d, a, b, c, x[k+11], s42, 0xbd3af235); /* 62 */
ii (ref c, d, a, b, x[k+ 2], s43, 0x2ad7d2bb); /* 63 */
ii (ref b, c, d, a, x[k+ Array], s44, 0xeb86d3Array1); /* 64 */

a+=a;
b+=b;
c+=c;
d+=d;
}
return new uint32[]{a,b,c,d};
}
public static byte[] md5array(byte[] input){
md5_init();
uint32[] block = md5_append(input);
uint32[] bits = md5_trasform(block);

/* encodes bits (uint32[]) into output (byte[]). assumes len is
* a multiple of 4.
*/
byte[] output=new byte[bits.length*4];
for(int i=0,j=0;i<bits.length;i++,j+=4){
output[j] = (byte)(bits[i] & 0xff);
output[j+1] = (byte)((bits[i] >> 8) & 0xff);
output[j+2] = (byte)((bits[i] >> 16) & 0xff);
output[j+3] = (byte)((bits[i] >> 24) & 0xff);
}
return output;
}

public static string arraytohexstring(byte[] array,bool uppercase){
string hexstring="";
string format="x2";
if(uppercase){
format="x2";
}
foreach(byte b in array){
hexstring += b.tostring(format);
}
return hexstring;
}

public static string mdstring(string message){
char[] c = message.tochararray();
byte[] b = new byte[c.length];
for(int i=0;i<c.length;i++){
b[i]=(byte)c[i];
}
byte[] digest = md5array(b);
return arraytohexstring(digest,false);
}
public static string mdfile(string filename){
filestream fs=file.open(filename,filemode.open,fileaccess.read);
byte[] array=new byte[fs.length];
fs.read(array,0,(int)fs.length);
byte[] digest = md5array(array);
fs.close();
return arraytohexstring(digest,false);
}

public static string test(string message){
return "rnmd5 (""+message+"") = " + md5.mdstring(message);
}
public static string testsuite(){
string s = "";
s+=test("");
s+=test("a");
s+=test("abc");
s+=test("message digest");
s+=test("abcdefghijklmnopqrstuvwxyz");
s+=test("");
s+=test("");
return s;
}
}

『柒』 cmd5指令誰能詳細的幫我介紹下

WINDOWS XP 開始→運行→命令 集錦winver 檢查Windows版本wmimgmt.msc 打開windows管理體系結構(WMI)wupdmgr windows更新程序wscript windows腳本宿主設置write 寫字板winmsd 系統信息wiaacmgr 掃描儀和照相機向導winchat XP自帶區域網聊天mem.exe 顯示內存使用情況Msconfig.exe 系統配置實用程序mplayer2 簡易widnows media playermspaint 畫圖板mstsc 遠程桌面連接mplayer2 媒體播放機magnify 放大鏡實用程序mmc 打開控制台mobsync 同步命令dxdiag 檢查DirectX信息drwtsn32 系統醫生devmgmt.msc 設備管理器dfrg.msc 磁碟碎片整理程序diskmgmt.msc 磁碟管理實用程序dcomcnfg 打開系統組件服務ddeshare 打開DDE共享設置dvdplay DVD播放器net stop messenger 停止信使服務net start messenger 開始信使服務notepad 打開記事本nslookup 網路管理的工具向導ntbackup 系統備份和還原narrator 屏幕「講述人」ntmsmgr.msc 移動存儲管理器ntmsoprq.msc 移動存儲管理員操作請求netstat -an (TC)命令檢查介面syncapp 創建一個公文包sysedit 系統配置編輯器sigverif 文件簽名驗證程序sndrec32 錄音機shrpubw 創建共享文件夾secpol.msc 本地安全策略syskey 系統加密,一旦加密就不能解開,保護windows xp系統的雙重密碼services.msc 本地服務設置Sndvol32 音量控製程序sfc.exe 系統文件檢查器sfc /scannow windows文件保護tsshutdn 60秒倒計時關機命令tourstart xp簡介(安裝完成後出現的漫遊xp程序)taskmgr 任務管理器eventvwr 事件查看器eudcedit 造字程序explorer 打開資源管理器packager 對象包裝程序perfmon.msc 計算機性能監測程序progman 程序管理器regedit.exe 注冊表rsop.msc 組策略結果集regedt32 注冊表編輯器rononce -p 15秒關機regsvr32 /u *.dll 停止dll文件運行regsvr32 /u zipfldr.dll 取消ZIP支持cmd.exe CMD命令提示符chkdsk.exe Chkdsk磁碟檢查certmgr.msc 證書管理實用程序calc 啟動計算器charmap 啟動字元映射表cliconfg SQL SERVER 客戶端網路實用程序Clipbrd 剪貼板查看器conf 啟動netmeetingcompmgmt.msc 計算機管理cleanmgr 垃圾整理ciadv.msc 索引服務程序osk 打開屏幕鍵盤odbcad32 ODBC數據源管理器oobe/msoobe /a 檢查XP是否激活lusrmgr.msc 本機用戶和組logoff 注銷命令iexpress 木馬捆綁工具,系統自帶Nslookup IP地址偵測器fsmgmt.msc 共享文件夾管理器utilman 輔助工具管理器gpedit.msc 組策略
AT 計劃在計算機上運行的命令和程序。ATTRIB 顯示或更改文件屬性。BREAK 設置或清除擴展式 CTRL+C 檢查。CACLS 顯示或修改文件的訪問控制列表(ACLs)。CALL 從另一個批處理程序調用這一個。CD 顯示當前目錄的名稱或將其更改。CHCP 顯示或設置活動代碼頁數。CHDIR 顯示當前目錄的名稱或將其更改。CHKDSK 檢查磁碟並顯示狀態報告。CHKNTFS 顯示或修改啟動時間磁碟檢查。CLS 清除屏幕。CMD 打開另一個 Windows 命令解釋程序窗口。COLOR 設置默認控制台前景和背景顏色。COMP 比較兩個或兩套文件的內容。COMPACT 顯示或更改 NTFS 分區上文件的壓縮。CONVERT 將 FAT 卷轉換成 NTFS。您不能轉換 當前驅動器。COPY 將至少一個文件復制到另一個位置。DATE 顯示或設置日期。

『捌』 c++ md5加密有現成的函數嗎

使用windows的動態鏈接庫advapi32.dll,此動態鏈接庫提供以下md5函數:

MD5Init(&ctx);
MD5Update(&ctx,buf,len);
MD5Final(&ctx);

下面演示MD5演算法的調用

#include<windows.h>

/*DatastructureforMD5(Message-Digest)computation*/
typedefstruct{
ULONGi[2];/*numberof_bits_handledmod2^64*/
ULONGbuf[4];/*scratchbuffer*/
unsignedcharin[64];/*inputbuffer*/
unsignedchardigest[16];/*actualdigestafterMD5Finalcall*/
}MD5_CTX;


#defineMD5DIGESTLEN16

#definePROTO_LIST(list)list


/*
*MTS:EachoftheseassumesMD5_.
*/
typedefvoid(WINAPI*PMD5Init)PROTO_LIST((MD5_CTX*));
typedefvoid(WINAPI*PMD5Update)PROTO_LIST((MD5_CTX*,constunsignedchar*,unsignedint));
typedefvoid(WINAPI*PMD5Final)PROTO_LIST((MD5_CTX*));

PMD5InitMD5Init=NULL;
PMD5UpdateMD5Update=NULL;
PMD5FinalMD5Final=NULL;

constchar*Hex2ASC(constBYTE*Hex,intLen)
{
staticcharASC[4096*2];
inti;

for(i=0;i<Len;i++)
{
ASC[i*2]="0123456789ABCDEF"[Hex[i]>>4];
ASC[i*2+1]="0123456789ABCDEF"[Hex[i]&0x0F];
}
ASC[i*2]='';

returnASC;
}intmain()
{
MD5_CTXctx;
unsignedcharbuf[4]="1233";
HINSTANCEhDLL;

if((hDLL=LoadLibrary("advapi32.dll"))>0)
{
MD5Init=(PMD5Init)GetProcAddress(hDLL,"MD5Init");
MD5Update=(PMD5Update)GetProcAddress(hDLL,"MD5Update");
MD5Final=(PMD5Final)GetProcAddress(hDLL,"MD5Final");

MD5Init(&ctx);
MD5Update(&ctx,buf,4);
MD5Final(&ctx);

printf(Hex2ASC(ctx.digest,16));

}

return0;
}
熱點內容
一萬級凈化車間有哪些配置 發布:2025-05-15 12:16:41 瀏覽:96
javazip解壓加密 發布:2025-05-15 12:15:02 瀏覽:941
dnf伺服器存放什麼信息 發布:2025-05-15 12:11:07 瀏覽:216
辦公室視頻劇本腳本 發布:2025-05-15 12:03:51 瀏覽:490
編譯失敗什麼意思 發布:2025-05-15 11:58:18 瀏覽:87
lcs腳本官網 發布:2025-05-15 11:56:15 瀏覽:88
三國志戰略版打9級礦什麼配置 發布:2025-05-15 11:41:29 瀏覽:953
安卓加速器怎麼關 發布:2025-05-15 11:38:16 瀏覽:465
密碼鎖壞了如何打開 發布:2025-05-15 11:30:19 瀏覽:838
怎樣增加共享文件夾連接數量 發布:2025-05-15 11:24:50 瀏覽:962