Esempio n. 1
0
        public void WriteSerialToEncrypted(string SerialNumber)
        {
            string location = AppGlobal.get_working_directory() + @"\seal.dat";
            string content  = SerialNumber;

            CoreEncryptionHandler.ProcessTextToFile(content, location, "GLSystem", "Encrypt");
        }
Esempio n. 2
0
        public void WriteLicenseToEncrypted(string LicenseID)
        {
            string location = AppGlobal.get_working_directory() + @"\note.dat";
            string content  = GenerateHWID() + "\r\n" + LicenseID;

            CoreEncryptionHandler.ProcessTextToFile(content, location, "GLSystem", "Encrypt");
        }
Esempio n. 3
0
        public string GetSerialNumberFromFile()
        {
            string location = AppGlobal.get_working_directory() + @"\seal.dat";
            string data;
            string curFile = AppGlobal.get_working_directory() + @"\\seal.dat";  //Your path

            data = (File.Exists(curFile) ? "File exists." : "File does not exist.");
            if (data == "File exists.")
            {
                string decryptfile = CoreEncryptionHandler.ProcessFileToText(location, "GLSystem", "Decrypt");
                SerialNumber = decryptfile;
            }
            return(SerialNumber);
        }
Esempio n. 4
0
        public string GetLicenseidFromFile()
        {
            string location = AppGlobal.get_working_directory() + @"\note.dat";
            string data;

            string[] ID;
            string   curFile = AppGlobal.get_working_directory() + @"\\note.dat"; //Your path

            data = (File.Exists(curFile) ? "File exists." : "File does not exist.");
            if (data == "File exists.")
            {
                string decryptfile = CoreEncryptionHandler.ProcessFileToText(location, "GLSystem", "Decrypt");
                ID        = Regex.Split(decryptfile, "\r\n");
                licenseID = ID[1];
            }
            return(licenseID);
        }