md5

Algorithm behind MD5Crypt

I'm working with Subversion based on Windows and would like to write an easy utility in .NET for working with the Apache password file. I understand that it uses a function referred to as MD5Crypt, but I can't seem to find a description of the algorithm beyond that at some point it uses MD5 to create a hash. Can someone describe the MD...

Storing MD5 Hash in SQL Server

In Sql Server would a varbinary(16) be the most efficient way of storing an MD5 hash? Won't be doing anything with it except returning it in a linq query. ...

How do I hash a string with Delphi?

What hash algorithms does Delphi support? ...

What's the difference between SHA and MD5 (in PHP)?

When you're hashing a password (or anything else) in PHP, does it make any difference if you use SHA or MD5? ...

How many random elements before MD5 produces collisions?

I've got an image library on Amazon S3. For each image, I md5 the source URL on my server plus a timestamp to get a unique filename. Since S3 can't have subdirectories, I need to store all of these images in a single flat folder. Do I need to worry about collisions in the MD5 hash value that gets produced? Bonus: How many files could I...

Any caveats to generating unique filenames for random images by running MD5 over the image contents?

I want to generate unique filenames per image so I'm using MD5 to make filenames.Since two of the same image could come from different locations, I'd like to actually base the hash on the image contents. What caveats does this present? (doing this with PHP5 for what it's worth) ...

Pros and cons of using md5 hash of URI as the primary key in a database

I'm building a database that will store information on a range of objects (such as scientific papers, specimens, DNA sequences, etc.) that all have a presence online and can be identified by a URL, or an identifier such as a DOI. Using these GUIDs as the primary key for the object seems a reasonable idea, and I've followed delicious and ...

Is there an MD5 Fixed Point where md5(x) == x?

Is there a fixed point in the MD5 transformation, i.e. does there exist x such that md5(x) == x? ...

One line code examples in various languages for MD5

I'm looking for one line code examples in various languages for getting a valid MD5 result (as a string, not a bytehash or what have you). For instance: PHP: $token = md5($var1 . $var2); I found VB especially troublesome to do in one line. ...

SQL performance & MD5 strings

I've got a DB table where we store a lot of MD5 hashes (and yes I know that they aren't 100% unique...) where we have a lot of comparison queries against those strings. This table can become quite large with over 5M rows. My question is this: Is it wise to keep the data as hexadecimal strings or should I convert the hex to binary or dec...

Calculating MD5 of a file to guarantee integrity

I am trying to guarantee the integrity of a file after download. I store the MD5 of the file in database and compare that MD5 to the file after it is downloaded. However, I always get different MD5 results when I hash the file after it is downloaded. I am wondering if the byte array that is being hashed contains the meta data like last m...

Faster MD5 alternative?

Hello everyone, I'm working on a program that searches entire drives for a given file. At the moment, I calculate an MD5 hash for the known file and then scan all files recursively, looking for a match. The only problem is that MD5 is painfully slow on large files. Is there a faster alternative that I can use while retaining a very sma...

using Java to get a file's md5 checksum?

I am looking to use java to get the md5 checksum of a file. I was really surprised but I haven't been able to find anything that shows how (and the best way) to get the md5 checksum of a file. Any ideas on how to go forward? Thanks. ...

How come MD5 hash values are not reversible?

Hey everyone, One concept I've always wondered about is the use of cryptographic hash functions and values. I understand that these functions can generate a hash value that is unique and virtually impossible to reverse, but here's what I've always wondered: If on my server, in PHP I produce: md5("stackoverflow.com") = "d0cc85b26f2ceb87...

In Java, how do I convert a byte array to a string of hex digits while keeping leading zeros?

I'm working with some example java code for making md5 hashes. One part converts the results from bytes to a string of hex digits: byte messageDigest[] = algorithm.digest(); StringBuffer hexString = new StringBuffer(); for (int i=0;i<messageDigest.length;i++) { hexString.append(Integer.toHexString(0xFF & messageDigest[i])); ...

Client Side MD5 Hash with Time Salt

I want to salt a hashed username and password (submitted via http POST) in JS on the client-side with a higher-order time value (< 1 minute resolution) to avoid sending the username and password hash as a constant value that could be used for a log-in attempt via POST fabrication by an unauthorized user (i.e. a sniffer). This will impos...

Ruby Implementation of RSA Data Security, Inc. MD5 Message-Digest Algorithm

Does anybody know of ruby implementation of RSA Data Security, Inc. MD5 Message-Digest Algorithm defined at http://tools.ietf.org/html/rfc1321 I found a javascript implementation at https://developer.openx.org/fisheye/browse/openads/branches/2.0/branches/openads-2.0.11/admin/md5.js?r=16584 ... It has a function MD5 which does the encodi...

Python regex for MD5 hash

I've come up with: re.findall("([a-fA-F\d]*)", data) but it's not very fool proof, is there a better way to grab all MD5-hash codes? ...

MD5 Hashing in Delphi 2009

In borland delphi 7 and even in delphi 2007 everything worked, but in delphi 2009 it just returns the wrong hash! I use wcrypt2 script (http://pastebin.com/m2f015cfd) Just have a look: string : "123456" hash: Delphi 7 : "e10adc3949ba59abbe56e057f20f883e" - real hash. Delphi 2007 : "e10adc3949ba59abbe56e057f20f883e" - real hash too....

htdigest file format

Hi all, I'm trying to write some code to work with an htdigest password file. The documentation I can find seems to claim that the format of that file is: user:realm:MD5(user:realm:pass) If that is the case, then why doesn't this work for me? I created a file with the command line htdigest thus: htdigest -c test b a When prompted ...