public void GenerateKey(TimeSpan Duration) { var key = new Key(Duration); if (DB.CreateKey(key)) { Helpers.Log($"Key {key.Identifier} for {Helpers.ToHumanReadableString(key.ValidFor)} has been successfully created", ConsoleColor.Green); } else { Helpers.Log($"Key {key.Identifier} could not be created", ConsoleColor.Red); } }