I guess you are trying to do the MD5 yourself, while you should simply just enter the mac address with the : . The script will automatically generate the hash for u.
The IMEI is harder, but any one who can grap your phone can enter *#06# to get your IMEI. Also, it's available on the box of your device, and many apps store the IMEI to identify your device.