Crew-Portal Posted December 10, 2007 Share Posted December 10, 2007 Simple how do I change the length of a MD5 Hash? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 10, 2007 Share Posted December 10, 2007 You can't. It is a standard - http://www.faqs.org/rfcs/rfc1321 Quote Link to comment Share on other sites More sharing options...
beansandsausages Posted December 10, 2007 Share Posted December 10, 2007 nope as far as i know its alwas 32 chricters long read this " MD stands for message digest. MD5 is an algorithm which takes an input of any length, and outputs a message digest of a fixed length (128-bit, 32 characters), made up from hexadecimal values. OK, now in English: MD5 is basically a way of taking a bunch of characters (be they digits, alphabetic or other), called the input string, and changing them to a 32 character long bunch of characters, called the message digest or the hash of the inputted string, made up from only hexadecimal characters (the digits 0-9 and the letters a-f). This means that whatever the length of the inputted string, MD5 will always create something which is 32 characters long, with only hexadecimal characters. The message digest will have no spaces, or quotation marks or anything other than 0-9's and a-f's in the outputted message digest. MD5 hashes also have the advantage of generating completely different looking hashes from seemingly similar inputs. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 10, 2007 Share Posted December 10, 2007 Do you want it longer? If so, use sha1. Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted December 10, 2007 Author Share Posted December 10, 2007 Is thier anyway to change the type. like from 32- to 64- because if its the same as VB a 64 bit would make a 128 char MD5? or is thier any way to change the variable type? Quote Link to comment Share on other sites More sharing options...
revraz Posted December 10, 2007 Share Posted December 10, 2007 Not sure about md5, but you can with sha. md2 md4 md5 sha1 sha256 sha384 sha512 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.