Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an MD5 hash have ONLY numbers or ONLY letters in it?

Tags:

hash

md5

crypt

I have been researching but I am clueless. I know that MD5 can have both numbers and letters but if I ever find a case where an MD5 has only numbers or only letters it breaks my script currently

like image 512
Mark Avatar asked Jul 26 '11 05:07

Mark


People also ask

Is MD5 hash a number?

MD5 (Message-Digest algorithm 5) is a widely used cryptographic hash function that results in a 128-bit hash value. The 128-bit (16-byte) MD5 hashes (also termed message digests) typically are represented as 32-digit hexadecimal numbers (for example, ec55d3e698d289f2afd663725127bace).

How many digits is an MD5 hash?

Each MD5 hash looks like 32 numbers and letters, but each digit is in hexadecimal and represents four bits. Since a single character represents eight bits (to form a byte), the total bit count of an MD5 hash is 128 bits.

What characters can be in MD5?

MD5 and SHA hashes in raw form are binary, however their common representation is a hex-encoded string, which contains characters [a-fA-F0-9] . So if this is what you meant, then characters G-Z, g-z are "excluded". Another, less common, representation is Base64 encoding [0-9a-zA-Z+/].

How many characters does MD5 produce?

MD5 yields hexadecimal digits (0-15 / 0-F), so they are four bits each. 128 / 4 = 32 characters.


1 Answers

List of few first strings that give only-digit md5 hash:

ximaz : 61529519452809720693702583126814 
aalbke : 55203129974456751211900188750366 
afnnsd : 49716523209578759475317816476053 
aooalg : 68619150135523129199070648991237 
bzbkme : 69805916917525281143075153085385 

Here's one with only letters:

cbaabcdljdac : cadbfdfecdcdcdacdbbbfadbcccefabd
like image 175
Jokerius Avatar answered Sep 19 '22 17:09

Jokerius