com.adventnet.utilities.encryption
Class MD5Encryption

java.lang.Object
  |
  +--com.adventnet.utilities.encryption.MD5Encryption

public class MD5Encryption
extends java.lang.Object


Constructor Summary
MD5Encryption()
           
 
Method Summary
static char[] ap_to64(long v, int n)
           
static java.lang.String encryptPassword(java.lang.String passwd)
          This method is used in conjunction with the fact that you can extract the salt from the encrypted password.
static java.lang.String encryptPassword(java.lang.String passwd, java.lang.String salty)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Encryption

public MD5Encryption()
Method Detail

ap_to64

public static char[] ap_to64(long v,
                             int n)

encryptPassword

public static java.lang.String encryptPassword(java.lang.String passwd)
This method is used in conjunction with the fact that you can extract the salt from the encrypted password. So using this method together with the above fact allows you to generate salty also randomly

encryptPassword

public static java.lang.String encryptPassword(java.lang.String passwd,
                                               java.lang.String salty)

main

public static void main(java.lang.String[] args)