Crypto { private Crypto() { } private  Crypto(); @Nonnull static String hash(@Nonnull final String value);  }
@Test public void testCrypto() { LOG.info("testCrypto"); final String code = "123456"; final String hash = Crypto.hash(code); LOG.info("hash(" + code + ") = {}", Crypto.hash(code)); Assert.assertEquals("8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92", hash); }