Beispiel #1
0
        public static bool CheckKeyFile()
        {
            string keyFilePath = AppDomain.CurrentDomain.BaseDirectory + "AxleHead.Key";

            if (FileOperate.CheckFileExist(keyFilePath) == false)
            {
                return(false);
            }
            return(true);
        }
Beispiel #2
0
        private static string ReadKeyFromFile()
        {
            string keyFilePath = AppDomain.CurrentDomain.BaseDirectory + "AxleHead.Key";
            string readKey     = FileOperate.ReadFileFromPath(@keyFilePath);

            if (readKey.Contains("\n"))
            {
                readKey = readKey.Substring(0, readKey.Length - 1);
            }
            return(readKey);
        }