Пример #1
0
    public string HCCU_Register(string HCCU_UID,string HCCU_PSW,string HCCU_MAC_ID,string SK) {

        string[,] p = new string[2, 3];
        p[0, 0] = "HCCU_UID";
        p[1, 0] = HCCU_UID;
        p[0, 1] = "HCCU_PSW";
        p[1, 1] = HCCU_PSW;
        p[0, 2] = "HCCU_MAC_ID";
        p[1, 2] = HCCU_MAC_ID;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return  COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        HCCU_UID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_UID);
        HCCU_MAC_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_MAC_ID);


        COS_WEBSERVICE_HCCU cos_w_h = new COS_WEBSERVICE_HCCU();
        return  COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_h.HCCU_Register(HCCU_UID, HCCU_PSW, HCCU_MAC_ID).ToString());
    }
Пример #2
0
    public string HCCU_Online_Notify(string HCCU_ID, string MAC, string SK)
    {
        string[,] p = new string[2, 2];
        p[0, 0]     = "HCCU_ID";
        p[1, 0]     = HCCU_ID;
        p[0, 1]     = "MAC";
        p[1, 1]     = MAC;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        HCCU_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);
        MAC     = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MAC);

        COS_WEBSERVICE_HCCU cos_w_hccu = new COS_WEBSERVICE_HCCU();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_hccu.HCCU_Online_Notify(HCCU_ID, MAC)));
    }
Пример #3
0
    public string HCCU_Offline_Notify(string MAC_ID, string ifLogOutAccount, string SK)
    {
        string[,] p = new string[2, 2];
        p[0, 0]     = "MAC_ID";
        p[1, 0]     = MAC_ID;
        p[0, 1]     = "ifLogOutAccount";
        p[1, 1]     = ifLogOutAccount;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        MAC_ID          = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MAC_ID);
        ifLogOutAccount = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(ifLogOutAccount);

        COS_WEBSERVICE_HCCU cos_w_hccu = new COS_WEBSERVICE_HCCU();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_hccu.HCCU_Offline_Notify(MAC_ID, ifLogOutAccount)));
    }
Пример #4
0
    public string HCCU_Get_Info(string HCCU_ID, string HCCU_MAC, string SK)
    {
        string[,] p = new string[2, 2];
        p[0, 0]     = "HCCU_ID";
        p[1, 0]     = HCCU_ID;
        p[0, 1]     = "HCCU_MAC";
        p[1, 1]     = HCCU_MAC;


        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        HCCU_ID  = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);
        HCCU_MAC = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_MAC);

        COS_WEBSERVICE_HCCU cos_w_h = new COS_WEBSERVICE_HCCU();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_h.HCCU_Get_Info(HCCU_ID, HCCU_MAC)));
    }
Пример #5
0
    public string HCCU_Login(string HCCU_UID, string HCCU_PSW, string HCCU_MAC_ID, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0]     = "HCCU_UID";
        p[1, 0]     = HCCU_UID;
        p[0, 1]     = "HCCU_PSW";
        p[1, 1]     = HCCU_PSW;
        p[0, 2]     = "HCCU_MAC_ID";
        p[1, 2]     = HCCU_MAC_ID;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        HCCU_UID    = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_UID);
        HCCU_MAC_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_MAC_ID);

        COS_WEBSERVICE_HCCU cos_w_h = new COS_WEBSERVICE_HCCU();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_h.HCCU_Login(HCCU_UID, HCCU_PSW, HCCU_MAC_ID)));
    }
Пример #6
0
    public string HCCU_ChangePassword(string HCCU_ID, string Old_Password, string New_Password, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0]     = "HCCU_ID";
        p[1, 0]     = HCCU_ID;
        p[0, 1]     = "Old_Password";
        p[1, 1]     = Old_Password;
        p[0, 2]     = "New_Password";
        p[1, 2]     = New_Password;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        HCCU_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);


        COS_WEBSERVICE_HCCU cos_w_h = new COS_WEBSERVICE_HCCU();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_h.HCCU_ChangePassword(HCCU_ID, Old_Password, New_Password)));
    }
Пример #7
0
    public string UpdateHCCUNetworkInfo(string MAC, string IP, string Port, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0]     = "MAC";
        p[1, 0]     = MAC;
        p[0, 1]     = "IP";
        p[1, 1]     = IP;
        p[0, 2]     = "Port";
        p[1, 2]     = Port;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        MAC  = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MAC);
        IP   = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(IP);
        Port = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(Port);

        COS_WEBSERVICE_HCCU cos_w_hccu = new COS_WEBSERVICE_HCCU();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_hccu.HCCU_NETWORKINFO_UPLOAD(MAC, IP, Port)));
    }
Пример #8
0
    public string HCCU_Online_Notify(string HCCU_ID, string MAC,string SK)
    {
        string[,] p = new string[2, 2];
        p[0, 0] = "HCCU_ID";
        p[1, 0] = HCCU_ID;
        p[0, 1] = "MAC";
        p[1, 1] = MAC;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        HCCU_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);
        MAC = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MAC);

        COS_WEBSERVICE_HCCU cos_w_hccu = new COS_WEBSERVICE_HCCU();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_hccu.HCCU_Online_Notify(HCCU_ID, MAC));
    
    }
Пример #9
0
    public string HCCU_Offline_Notify(string MAC_ID, string ifLogOutAccount,string SK)
    {
        string[,] p = new string[2, 2];
        p[0, 0] = "MAC_ID";
        p[1, 0] = MAC_ID;
        p[0, 1] = "ifLogOutAccount";
        p[1, 1] = ifLogOutAccount;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        MAC_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MAC_ID);
        ifLogOutAccount = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(ifLogOutAccount);

        COS_WEBSERVICE_HCCU cos_w_hccu = new COS_WEBSERVICE_HCCU();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_hccu.HCCU_Offline_Notify(MAC_ID, ifLogOutAccount));
    
    }
Пример #10
0
    public string UpdateHCCUNetworkInfo(string MAC,string IP,string Port,string SK) {

        string[,] p = new string[2, 3];
        p[0, 0] = "MAC";
        p[1, 0] = MAC;
        p[0, 1] = "IP";
        p[1, 1] = IP;
        p[0, 2] = "Port";
        p[1, 2] = Port;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        MAC = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MAC);
        IP = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(IP);
        Port = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(Port);

        COS_WEBSERVICE_HCCU cos_w_hccu = new COS_WEBSERVICE_HCCU();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_hccu.HCCU_NETWORKINFO_UPLOAD(MAC, IP, Port));
    
    }
Пример #11
0
    public string HCCU_Get_Info(string HCCU_ID, string HCCU_MAC,string SK)
    {

        string[,] p = new string[2, 2];
        p[0, 0] = "HCCU_ID";
        p[1, 0] = HCCU_ID;
        p[0, 1] = "HCCU_MAC";
        p[1, 1] = HCCU_MAC;


        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        HCCU_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);
        HCCU_MAC = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_MAC);

        COS_WEBSERVICE_HCCU cos_w_h = new COS_WEBSERVICE_HCCU();

        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_h.HCCU_Get_Info(HCCU_ID, HCCU_MAC));

    }
Пример #12
0
    public string HCCU_ChangePassword(string HCCU_ID, string Old_Password, string New_Password,string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0] = "HCCU_ID";
        p[1, 0] = HCCU_ID;
        p[0, 1] = "Old_Password";
        p[1, 1] = Old_Password;
        p[0, 2] = "New_Password";
        p[1, 2] = New_Password;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return  COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        HCCU_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);


        COS_WEBSERVICE_HCCU cos_w_h = new COS_WEBSERVICE_HCCU();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_h.HCCU_ChangePassword(HCCU_ID, Old_Password, New_Password)); 
    }