hash - A Simple MD5 Checker Android Apps -


i'm sorry need building android app have function generate md5 hash file , textfile. can me, don't understand on android development, teacher keep pushing me (sorry that).

thank help. hari (indonesia)

md5 hash function:

public static final string md5(final string s)      {         try          {             messagedigest digest = java.security.messagedigest.getinstance("md5");             digest.update(s.getbytes());             byte messagedigest[] = digest.digest();              stringbuffer hexstring = new stringbuffer();             (int = 0; < messagedigest.length; i++)              {                 string h = integer.tohexstring(0xff & messagedigest[i]);                 while (h.length() < 2)                     h = "0" + h;                 hexstring.append(h);             }             return hexstring.tostring();         }          catch (nosuchalgorithmexception e)          {             e.printstacktrace();         }         return "";     } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -