private static KeyGen getKeyGenerator(string pi_appname, string pi_propertyname, string pi_contractnum)
        {
            KeyGen kg = new KeyGen(pi_appname);
            string pk = kg.generatePublicKey(pi_propertyname, pi_contractnum);

            kg.m_PublicKey = pk;

            return(kg);
        }
        public static string createModuleKey(string pi_appname, string pi_propertyname, string pi_contractnum, string pi_modulename)
        {
            KeyGen kg = getKeyGenerator(pi_appname, pi_propertyname, pi_contractnum);

            return(kg.generateModuleKey(pi_propertyname, pi_contractnum, pi_modulename));
        }
        public static string createPublicKey(string pi_appname, string pi_propertyname, string pi_contractnum)
        {
            KeyGen kg = new KeyGen(pi_appname);

            return(kg.generatePublicKey(pi_propertyname, pi_contractnum));
        }