/*
 * Created on 07-Oct-2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package uk.ac.roe.wfau;
import uk.ac.roe.wfau.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.math.BigInteger;

/**
 * @author mar
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Test1 {

    public static void main(String[] args) {
        System.out.println(HostProcessNumber.getHotProcessNumber("1",3));
 

        try
        {
      //  String password = HostProcessNumber.getHotProcessNumber("1",3)+"dgdfgdfddffdjkjkjkkkkkkkkkkkkllllllllllllllllllllllllllllllllllllllllllllllllllllkwhfwlhfwlkjhsdlfjslsdj";
            String password = "mar1";
        MessageDigest md = MessageDigest.getInstance( "MD5" );
        md.update( password.getBytes( "8859_1" ) );
        BigInteger hash = new BigInteger( 1, md.digest() );
        String hpassword = hash.toString( 16 );
        System.out.println(hpassword);
        }

     catch ( Exception e)
        {
        e.printStackTrace();
        }

     long now = System.currentTimeMillis();
     System.out.println(now);
        System.out.println(Short.MIN_VALUE);
    }
}
