org.eparapher.core.crypto
Class EPDigestManager

java.lang.Object
  extended by org.eparapher.core.crypto.EPDigestManager

public class EPDigestManager
extends Object


Field Summary
static String[] DIGESTFORMAT
           
static String GOST3411
           
static String MD2
           
static String MD4
           
static String MD5
           
static String RIPEMD128
           
static String RIPEMD160
           
static String RIPEMD256
           
static String RIPEMD320
           
static String SHA1
           
static String SHA224
           
static String SHA256
           
static String SHA384
           
static String SHA512
           
static String TIGER
           
static String WHIRLPOOL
           
 
Constructor Summary
EPDigestManager()
           
 
Method Summary
static EPDigestManager getInstance()
           
 byte[] hash(String alg, byte[] content)
           
 String hashInHex(String alg, byte[] content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MD2

public static final String MD2
See Also:
Constant Field Values

MD4

public static final String MD4
See Also:
Constant Field Values

MD5

public static final String MD5
See Also:
Constant Field Values

RIPEMD128

public static final String RIPEMD128
See Also:
Constant Field Values

RIPEMD160

public static final String RIPEMD160
See Also:
Constant Field Values

RIPEMD256

public static final String RIPEMD256
See Also:
Constant Field Values

RIPEMD320

public static final String RIPEMD320
See Also:
Constant Field Values

SHA1

public static final String SHA1
See Also:
Constant Field Values

SHA224

public static final String SHA224
See Also:
Constant Field Values

SHA256

public static final String SHA256
See Also:
Constant Field Values

SHA384

public static final String SHA384
See Also:
Constant Field Values

SHA512

public static final String SHA512
See Also:
Constant Field Values

TIGER

public static final String TIGER
See Also:
Constant Field Values

GOST3411

public static final String GOST3411
See Also:
Constant Field Values

WHIRLPOOL

public static final String WHIRLPOOL
See Also:
Constant Field Values

DIGESTFORMAT

public static final String[] DIGESTFORMAT
Constructor Detail

EPDigestManager

public EPDigestManager()
Method Detail

getInstance

public static EPDigestManager getInstance()

hash

public byte[] hash(String alg,
                   byte[] content)
            throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

hashInHex

public String hashInHex(String alg,
                        byte[] content)
                 throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException


Copyright © 2009 eParapher Software Foundation. All Rights Reserved.