com.adventnet.agent.tl1.security
Class EncrypterMD5

java.lang.Object
  |
  +--com.adventnet.agent.tl1.security.EncrypterMD5

public class EncrypterMD5
extends java.lang.Object

This class is used to encrypt the password as per MD5 algorithm.


Constructor Summary
EncrypterMD5()
           
 
Method Summary
 java.lang.String encryptPassword(java.lang.String passwd, java.lang.String salty)
          Encrypts the password using MD5 message digest algorithm.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncrypterMD5

public EncrypterMD5()
Method Detail

encryptPassword

public java.lang.String encryptPassword(java.lang.String passwd,
                                        java.lang.String salty)
Encrypts the password using MD5 message digest algorithm. For new entry the salt will be null.To verify Password the salt will be taken from corresponding user's password and given.
Parameters:
passwd - - the Password in String format
salty - - pass null for the first time.