@Test public void testHashSha256Base64() throws Exception { assertThat(CryptTools.hashSha256Base64("jeeshop")).isEqualTo("DjYu7nlNFk6BdxO+LwxZJ3mBAfxgwytTS2cVRbmnIO8="); }
public static String hashSha256Base64(String strToHash) { byte[] digest = Hashing.sha256().hashBytes(strToHash.getBytes()).asBytes(); return Base64.encodeBase64String(digest); }
CryptTools { public static String hashSha256Base64(String strToHash) { byte[] digest = Hashing.sha256().hashBytes(strToHash.getBytes()).asBytes(); return Base64.encodeBase64String(digest); } }
CryptTools { public static String hashSha256Base64(String strToHash) { byte[] digest = Hashing.sha256().hashBytes(strToHash.getBytes()).asBytes(); return Base64.encodeBase64String(digest); }  }
CryptTools { public static String hashSha256Base64(String strToHash) { byte[] digest = Hashing.sha256().hashBytes(strToHash.getBytes()).asBytes(); return Base64.encodeBase64String(digest); }  static String hashSha256Base64(String strToHash); }
CryptTools { public static String hashSha256Base64(String strToHash) { byte[] digest = Hashing.sha256().hashBytes(strToHash.getBytes()).asBytes(); return Base64.encodeBase64String(digest); }  static String hashSha256Base64(String strToHash);  }