Back to project page SpeedReading.
The source code is released under:
GNU General Public License
If you think the Android project SpeedReading listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.energix.speedreading.utils; //from w w w . j a va2s . com import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Hash { public static String md5(String input){ MessageDigest mdEnc = null; try { mdEnc = MessageDigest.getInstance("MD5"); mdEnc.update(input.getBytes(), 0, input.length()); return new BigInteger(1, mdEnc.digest()).toString(16); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return null; } }