@Test public void testEncryptToSHA256() throws Exception { Assert.assertNotNull(EncryptTo.encryptToSHA256(StringUtil.generateRandomString(32))); Assert.assertNotNull(EncryptTo.encryptToSHA1(StringUtil.generateRandomString(32))); }
public static byte[] encryptToSHA256(String text) { return encryptToSHA256(text.getBytes(StandardCharsets.UTF_8)); }
EncryptTo { public static byte[] encryptToSHA256(String text) { return encryptToSHA256(text.getBytes(StandardCharsets.UTF_8)); } }
EncryptTo { public static byte[] encryptToSHA256(String text) { return encryptToSHA256(text.getBytes(StandardCharsets.UTF_8)); } private  EncryptTo(); }
EncryptTo { public static byte[] encryptToSHA256(String text) { return encryptToSHA256(text.getBytes(StandardCharsets.UTF_8)); } private  EncryptTo(); static byte[] encryptToSHA256(String text); static byte[] encryptToSHA256(byte[] bytes); static byte[] encryptToSHA1(String text); static byte[] encryptToSHA1(byte[] bytes); }
EncryptTo { public static byte[] encryptToSHA256(String text) { return encryptToSHA256(text.getBytes(StandardCharsets.UTF_8)); } private  EncryptTo(); static byte[] encryptToSHA256(String text); static byte[] encryptToSHA256(byte[] bytes); static byte[] encryptToSHA1(String text); static byte[] encryptToSHA1(byte[] bytes);  }