/// <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); }
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(); }
private static string GenerateAuthentificationId() { return("AUTH" + RandomOperations.GenerateRandomNumber(12)); }
/// <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>(); }
private static string GenerateNewSecret() { var secret = RandomOperations.GenerateRandomString(40); return(secret); }