RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:9:30-18:00
你可能遇到了下面的问题
关闭右侧工具栏
以汇编语言为核心的MD5算法
  • 作者:zhaozj
  • 发表时间:2020-12-23 10:39
  • 来源:未知

md5.c

#include "md5.h"#include <stdio.h>void main(){ MD5_CTX context;  MD5Init (&context); MD5Update (&context, "crazyd", strlen("crazyd")); MD5Final (&context); //在上面的断点看context处的内存,连续16个字节的内容就是加密后的结果}

 

md5.dsp

# Microsoft Developer Studio Project File - Name="md5" - Package Owner=<4># Microsoft Developer Studio Generated Build File, Format Version 6.00# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Console Application" 0x0103

CFG=md5 - Win32 Debug!MESSAGE This is not a valid makefile. To build this project using NMAKE,!MESSAGE use the Export Makefile command and run!MESSAGE !MESSAGE NMAKE /f "md5.mak".!MESSAGE !MESSAGE You can specify a configuration when running NMAKE!MESSAGE by defining the macro CFG on the command line. For example:!MESSAGE !MESSAGE NMAKE /f "md5.mak" CFG="md5 - Win32 Debug"!MESSAGE !MESSAGE Possible choices for configuration are:!MESSAGE !MESSAGE "md5 - Win32 Release" (based on "Win32 (x86) Console Application")!MESSAGE "md5 - Win32 Debug" (based on "Win32 (x86) Console Application")!MESSAGE

# Begin Project# PROP AllowPerConfigDependencies 0# PROP Scc_ProjName ""# PROP Scc_LocalPath ""CPP=cl.exeRSC=rc.exe

!IF  "$(CFG)" == "md5 - Win32 Release"

# PROP BASE Use_MFC 0# PROP BASE Use_Debug_Libraries 0# PROP BASE Output_Dir "Release"# PROP BASE Intermediate_Dir "Release"# PROP BASE Target_Dir ""# PROP Use_MFC 0# PROP Use_Debug_Libraries 0# PROP Output_Dir "Release"# PROP Intermediate_Dir "Release"# PROP Target_Dir ""# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c# ADD BASE RSC /l 0x804 /d "NDEBUG"# ADD RSC /l 0x804 /d "NDEBUG"BSC32=bscmake.exe# ADD BASE BSC32 /nologo# ADD BSC32 /nologoLINK32=link.exe# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386