public class

SecureHashUtil

extends Object
java.lang.Object
   ↳ com.facebook.common.util.SecureHashUtil

Class Overview

Static methods for secure hashing.

Summary

Public Constructors
SecureHashUtil()
Public Methods
static String convertToHex(byte[] raw)
static String makeMD5Hash(String text)
static String makeMD5Hash(byte[] bytes)
static String makeSHA1Hash(String text)
static String makeSHA1Hash(byte[] bytes)
static String makeSHA1HashBase64(byte[] bytes)
static String makeSHA256Hash(byte[] bytes)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SecureHashUtil ()

Public Methods

public static String convertToHex (byte[] raw)

Throws
UnsupportedEncodingException

public static String makeMD5Hash (String text)

public static String makeMD5Hash (byte[] bytes)

public static String makeSHA1Hash (String text)

public static String makeSHA1Hash (byte[] bytes)

public static String makeSHA1HashBase64 (byte[] bytes)

public static String makeSHA256Hash (byte[] bytes)