[dba-VB] SHA1 to compute a hash

jwcolby jwcolby at colbyconsulting.com
Sat Mar 19 07:11:32 CDT 2011


I will do a collision test in my email file.  AFAICT I have some collisions in there.  If I find any 
I will send you the message and hash so that you can see what collisions look like.

John W. Colby
www.ColbyConsulting.com

On 3/19/2011 8:06 AM, Stuart McLachlan wrote:
> That got my interest piqued.
>
> So I've just built a small DLL (13KB) to calculate SHA1 digests for either strings or files.
> All you need to use it is to put the DLL somewhere in your PATH such as
> %SYSTEMROOT\System32 and include a couple of declarations in your application.
>
> Declare Function SHA1StringDigest Lib "LXSHA1.DLL" Alias "SHA1STRINGDIGEST"
> (Message As String) As String
>
> Declare Function SHA1FileDigest Lib "LXSHA1.DLL" Alias "SHA1FILEDIGEST" (FileName
> As String) As String
>
> It correctly returns the test results below for either the string or a file containing the same
> data.
>
> If anyone  wants a copy, let me know.
>



More information about the dba-VB mailing list