Exemple #1
0
        /// <summary>
        /// Generates a new 10-Digit internal deviceId consisting of 10-digit-strings
        /// made up out of small or capital letters
        /// </summary>
        /// <returns>a unique device id</returns>
        internal static string GenerateInternalDeviceId()
        {
            var deviceId = RandomOperations.GenerateRandomString(10);

            while (InternalDeviceIdExists(deviceId))
            {
                deviceId = RandomOperations.GenerateRandomString(10);
            }
            return(deviceId);
        }
Exemple #2
0
        private static void Initialize()
        {
            Console.WriteLine("INIT...");
            Thread.Sleep(666);

            RandomOperations.Initialize();
            UserInputInterpreter.Initialize();
            ClientSocketInterface.Initialize();
            MobileDeviceManagement.Initialize();
            EchoModeOn = false;
            //_gui = new MainForm();
            //Settings.Initialize();

            Console.WriteLine("INIT COMPLETE...");
            Console.Title = "Crowdsound CSA " + About.VERSION_NUMBER;
            ConsoleHelper.PrintProgramIdent();
        }
Exemple #3
0
 private static string GenerateAuthentificationId()
 {
     return("AUTH" + RandomOperations.GenerateRandomNumber(12));
 }
Exemple #4
0
 /// <summary>
 /// Initializes all needed classvariables
 /// and prepares structures for use
 /// </summary>
 internal static void Initialize()
 {
     RandomOperations.Initialize();
     BoundDevices       = new List <MobileDevice>();
     PendingConnections = new List <ClientConnection>();
 }
Exemple #5
0
        private static string GenerateNewSecret()
        {
            var secret = RandomOperations.GenerateRandomString(40);

            return(secret);
        }