Java SHA sha5Encode(byte[] content)

Here you can find the source of sha5Encode(byte[] content)

Description

sha Encode

License

Apache License

Declaration

public static byte[] sha5Encode(byte[] content) throws NoSuchAlgorithmException, InvalidKeyException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class Main {
    public static byte[] sha5Encode(byte[] content) throws NoSuchAlgorithmException, InvalidKeyException {
        MessageDigest md = MessageDigest.getInstance("SHA-512");
        byte[] mdRes = md.digest(content);
        return mdRes;
    }//from  ww  w . j  av  a  2 s.  co  m
}

Related

  1. sha(String text, String encoding)
  2. sha2(String content)
  3. sha2(String input)
  4. sha2(String password)
  5. sha2(String... data)
  6. SHA_1(byte[] input)
  7. shaFile(String paramString)
  8. SHAHash(byte[] input)
  9. shaHash(String message)