Here you can find the source of sha512hash_base64(final String toHash)
@Deprecated public static String sha512hash_base64(final String toHash)
//package com.java2s; //License from project: Apache License import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Base64; public class Main { @Deprecated public static String sha512hash_base64(final String toHash) { final MessageDigest md; try {/*from w ww . j a va2s.c o m*/ md = MessageDigest.getInstance("SHA-512"); } catch (NoSuchAlgorithmException e) { throw new RuntimeException("Shouldn't happen"); } final byte[] digest = md.digest(toHash.getBytes()); return new String(Base64.getEncoder().encode(digest)); } }