Md5 encryption using common-codec

  java

maven

        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.6</version>
        </dependency>

Use

System.out.println(DigestUtils.md5Hex("123456"));