Posts: 30
	Threads: 5
	Joined: Apr 2013
	
	
 
	
	
		oclhashcat cracked md5 of f54198dc47cf5cd61202b8675e118811 as $HEX[454645c7494e4152] which is EFEÇINAR
but if you generate md5 from EFEÇINAR it is: 84be3c290cff6a369b09f662713239af
if you generate md5 from $HEX[454645c7494e4152] it is: a5ebb0a6d0c4ce3c412c7a0db4b6c7e1
what is the correct one?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 2,935
	Threads: 12
	Joined: May 2012
	
	
 
	
	
		it's an encoding error on your part. your terminal is probably UTF8, and that string isn't.
Code:
epixoip@token:~$ printf "\x45\x46\x45\xc7\x49\x4e\x41\x52" | md5sum
f54198dc47cf5cd61202b8675e118811  -
 
 
	
	
	
		
	Posts: 2,266
	Threads: 16
	Joined: Feb 2013
	
	
 
	
	
		Yes, encoding matters. Try this:
Code:
echo -en 'EFE\xc7INAR' | md5sum
f54198dc47cf5cd61202b8675e118811  -
or this:
Code:
echo -n 'EFEÇINAR' | iconv -t iso-8859-1 | md5sum
f54198dc47cf5cd61202b8675e118811  -
 
 
	
	
	
		
	Posts: 30
	Threads: 5
	Joined: Apr 2013
	
	
 
	
		
		
		06-14-2014, 11:22 AM 
(This post was last modified: 06-14-2014, 11:22 AM by tbm.)
		
	 
	
		 (06-14-2014, 11:16 AM)epixoip Wrote:  it's an encoding error on your part. your terminal is probably UTF8, and that string isn't.
Code:
epixoip@token:~$ printf "\x45\x46\x45\xc7\x49\x4e\x41\x52" | md5sum
f54198dc47cf5cd61202b8675e118811  -
thanks epixoip & philsmd