Example usage for org.apache.commons.codec.digest DigestUtils getMd2Digest

List of usage examples for org.apache.commons.codec.digest DigestUtils getMd2Digest

Introduction

In this page you can find the example usage for org.apache.commons.codec.digest DigestUtils getMd2Digest.

Prototype

public static MessageDigest getMd2Digest() 

Source Link

Usage

From source file:yoyo.framework.standard.shared.commons.codec.DigestUtilsTest.java

@Test
public void test() {
    assertThat(DigestUtils.getMd2Digest(), is(not(nullValue())));
    assertThat(DigestUtils.getMd5Digest(), is(not(nullValue())));
    assertThat(DigestUtils.getSha1Digest(), is(not(nullValue())));
    assertThat(DigestUtils.getSha256Digest(), is(not(nullValue())));
    assertThat(DigestUtils.getSha384Digest(), is(not(nullValue())));
    assertThat(DigestUtils.getSha512Digest(), is(not(nullValue())));
    assertThat(DigestUtils.md2Hex(new byte[] {}), is(not(nullValue())));
}