public static String hash(String databaseString)
	{
		String hashedString=null;
		
		try {
			MessageDigest md = MessageDigest.getInstance("MD5");
			md.update(databaseString.getBytes());
			byte[] bytes = md.digest();
			StringBuilder sb = new StringBuilder();
			for(int i=0; i< bytes.length ;i++)
			{
				sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));
			}
			//Get complete hashed password in hex format
			hashedString = sb.toString();
		} 
		catch (NoSuchAlgorithmException e) 
		{
			e.printStackTrace();
		}
		
		
		return hashedString;
	}