Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Exile 1.8 - The Password Manager

, 7 Mar 2005
Yet another password manager.
exile_18_setup.zip
exile_1.8_setup.exe
exile_exe.zip
exile.exe
Exile.exe.manifest
icons.dll
md5.dll
mdx.dll
PwsInfo.dll
rc5.dll
exile_exe_staticmfc.zip
exile.exe
icons.dll
md5.dll
mdx.dll
rc5.dll
exile_src.zip
exile
Exile
Exile.exe.manifest
exile.dep
exile.dsp
exile.dsw
res
aboveimportant.ico
advanced.bmp
belowcritical.ico
belowinsignificant.ico
belownormal.ico
changeicon.bmp
cold.ico
collapsed.ico
critical.ico
editcategory.bmp
editelement.bmp
enterpassword.bmp
error.ico
exile.ico
expanded.ico
exporttoxml.bmp
find.ico
found.ico
important.ico
insertcategory.bmp
insertelement.bmp
insignificant.ico
md5hashgenerator.bmp
new.bmp
normal.ico
options.bmp
passwordgenerator.bmp
rsasecurity.bmp
rsasecurity.ico
search.cur
storageproperties.bmp
switch.bmp
unimportant.ico
veryimportant.ico
vssver.scc
Icons
res
icon1.ico
icon10.ico
icon11.ico
icon12.ico
icon13.ico
icon14.ico
icon15.ico
icon16.ico
icon17.ico
icon18.ico
icon19.ico
icon2.ico
icon20.ico
icon21.ico
icon22.ico
icon23.ico
icon24.ico
icon25.ico
icon26.ico
icon27.ico
icon28.ico
icon3.ico
icon4.ico
icon5.ico
icon6.ico
icon7.ico
icon8.ico
icon9.ico
md5
md5.dep
md5.dsp
mdx
pwsinfo
passwordstorageshellext.rgs
pwsinfo.def
pwsinfo.dep
pwsinfo.dsp
pwsinfo.dsw
PwsInfo.tlb
pwsinfops.def
pwsinfops.mk
rc5
rc5.dep
rc5.dsp
xml
exile_src_vs2003.zip
Exile.exe.manifest
Exile.dep
Exile.dsp
Exile.dsw
Exile.suo
msxml3.tlh
msxml3.tli
res
AboveImportant.ico
Advanced.bmp
BelowCritical.ico
BelowInsignificant.ico
BelowNormal.ico
ChangeIcon.bmp
Cold.ico
Critical.ico
EditCategory.bmp
EditElement.bmp
EnterPassword.bmp
Error.ico
Exile.ico
ExportToXML.bmp
Find.ico
Found.ico
Icon1.ico
Icon10.ico
Icon11.ico
Icon12.ico
Icon13.ico
Icon14.ico
icon15.ico
Icon16.ico
Icon17.ico
Icon18.ico
Icon19.ico
Icon2.ico
Icon20.ico
Icon21.ico
Icon22.ico
Icon23.ico
Icon24.ico
Icon25.ico
Icon26.ico
Icon27.ico
Icon28.ico
Icon3.ico
Icon4.ico
Icon5.ico
Icon6.ico
Icon7.ico
Icon8.ico
Icon9.ico
Important.ico
InsertCategory.bmp
InsertElement.bmp
Insignificant.ico
MD5HashGenerator.bmp
New.bmp
Normal.ico
Options.bmp
PasswordGenerator.bmp
RSASecurity.bmp
rsasecurity.ico
Search.cur
StorageProperties.bmp
Switch.bmp
Unimportant.ico
VeryImportant.ico
vssver.scc
MD5
MD5.dep
MD5.dsp
PwsInfo
PasswordStorageShellExt.rgs
PwsInfo.def
PwsInfo.dep
PwsInfo.dsp
PwsInfo.dsw
PwsInfo.tlb
PwsInfops.def
PwsInfops.mk
RC5
RC5.dep
RC5.dsp
/********************************************************************
	Created:	21/3/2004, 21:39
	File name: 	D:\Projects\Exile\MD5\MD5.h
	File path:	D:\Projects\Exile\MD5
	File base:	MD5
	File ext:	h
	Author:		Gogolev Anton
*********************************************************************/

#ifndef __MD5_H__
#define __MD5_H__

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the MD5_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// MD5_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.

#ifdef MD5_EXPORTS
#define MD5_API extern "C" __declspec(dllexport)
#else
#define MD5_API extern "C" __declspec(dllimport)
#endif

BOOL WINAPI DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved);

//////////////////////////////////////////////////////////////////////////
// MD5 Types

// MD5 Word
typedef unsigned long int MD5_WORD;

// MD5 Hashing Context
typedef unsigned long int HMD5CONTEXT;

// MD5 Hash
typedef struct tagMD5HASH {
	MD5_WORD wA;
	MD5_WORD wB;
	MD5_WORD wC;
	MD5_WORD wD;
} MD5HASH, *LPMD5HASH;

// MD5 Hashing Context
typedef struct tagMD5CONTEXT {
	MD5HASH hsState;
	BYTE *pBuffer; // To buffer data which is still to be hashed
	unsigned int unBuffer; // Buffer index
	unsigned int unSize; // Total size of data hashed (in bytes)
} MD5CONTEXT, *LPMD5CONTEXT;


// Initializes MD5 internal structures
MD5_API BOOL Md5Initialize();

// Uninitializes and performs cleanup
MD5_API BOOL Md5Uninitialize();

// Acquire initialized MD5 Hashing context.
MD5_API BOOL Md5AcquireContext(HMD5CONTEXT &hMd5);

// Release MD5 Hashing context
MD5_API BOOL Md5ReleaseContext(HMD5CONTEXT &hMd5);

// Resets a hashing context so new data block can be hashed
MD5_API BOOL Md5ResetContext(HMD5CONTEXT hMd5);

// Determine if given context is a valid one
MD5_API BOOL Md5ValidContext(HMD5CONTEXT hMd5);

// Hashes a buffer (pBuffer) of a given size (sBuffer) and
// awaits either for a next part of a message, or for
// a call to Md5HashFinal()
MD5_API BOOL Md5HashBuffer(HMD5CONTEXT hMd5, BYTE *pBuffer, size_t sBuffer);

// Hashes buffered data (if any), produces a final hash
// and automatically resets hashing context.
MD5_API BOOL Md5HashFinal(HMD5CONTEXT hMd5, MD5HASH &hsMd5);

// This function should not be called under normal
// circumstances, but anyway it can be useful for some
// specific purposes. It hashes a 512-block (only!) of data
// with already defined hash value.
MD5_API BOOL Md5HashDependentBuffer(MD5_WORD *pwData, MD5HASH &hMd5);

// Calculates buffer size required for data expansion
MD5_API size_t Md5GetExpandedBufferSize(size_t sSize);

// Expands data buffer pointed by pvData. Buffer must be sTotal bytes long
// and must contain sSgSize bytes of significant data. Remaining bytes
// will be by Md5ExpandData()
MD5_API BOOL Md5ExpandData(void *pvData, size_t sSgSize, size_t sTotal);

// Hashes message of nBlocks 512-bit blocks pointed by pwData.
MD5_API BOOL Md5HashData(MD5_WORD *pwData, UINT nBlocks, MD5HASH &hMd5);

// Tests if two hashes are equal
MD5_API BOOL Md5EqualHashes(MD5HASH hsMd5A, MD5HASH hsMd5B);

#endif //__MD5_H__

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

AntonGogolev
Web Developer
Russian Federation Russian Federation
I'll think about it later on...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 7 Mar 2005
Article Copyright 2004 by AntonGogolev
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid