net.jradius.util
Class MD5

java.lang.Object
  extended by net.jradius.util.MD5

public class MD5
extends Object

MD5 Utils including HMAC-MD5

Author:
David Bird

Constructor Summary
MD5()
           
 
Method Summary
static gnu.crypto.mac.IMac getHMACMD5()
           
static gnu.crypto.mac.IMac getHMACSHA1()
           
static gnu.crypto.hash.IMessageDigest getMD5()
           
static byte[] hmac_md5(byte[] text, byte[] key)
           
static byte[] hmac_md5(byte[] text, int toff, int tlen, byte[] key)
           
static byte[] md5(byte[] text)
           
static byte[] md5(byte[] text1, byte[] text2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5()
Method Detail

getMD5

public static gnu.crypto.hash.IMessageDigest getMD5()

getHMACMD5

public static gnu.crypto.mac.IMac getHMACMD5()

getHMACSHA1

public static gnu.crypto.mac.IMac getHMACSHA1()

md5

public static byte[] md5(byte[] text)

md5

public static byte[] md5(byte[] text1,
                         byte[] text2)

hmac_md5

public static byte[] hmac_md5(byte[] text,
                              byte[] key)

hmac_md5

public static byte[] hmac_md5(byte[] text,
                              int toff,
                              int tlen,
                              byte[] key)


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.