<?xml version="1.0" encoding="UTF-8"?>
<article article-type="research-article" dtd-version="1.3" xml:lang="ru" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://metafora.rcsi.science/xsd_files/journal3.xsd">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">moitvivt</journal-id>
      <journal-title-group>
        <journal-title xml:lang="ru">Моделирование, оптимизация и информационные технологии</journal-title>
        <trans-title-group xml:lang="en">
          <trans-title>Modeling, Optimization and Information Technology</trans-title>
        </trans-title-group>
      </journal-title-group>
      <issn pub-type="epub">2310-6018</issn>
      <publisher>
        <publisher-name>Издательство</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.26102/2310-6018/2023.41.2.023</article-id>
      <article-id pub-id-type="custom" custom-type="elpub">1359</article-id>
      <title-group>
        <article-title xml:lang="ru">Разработка декоратора StegoStream для ассоциативной защиты байтового потока</article-title>
        <trans-title-group xml:lang="en">
          <trans-title>Development of StegoStream decorator for associative protection of byte stream</trans-title>
        </trans-title-group>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Вершинин</surname>
              <given-names>Игорь Сергеевич</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Vershinin</surname>
              <given-names>Igor Sergeevich</given-names>
            </name>
          </name-alternatives>
          <email>vershinin_igor@rambler.ru</email>
          <xref ref-type="aff">aff-1</xref>
        </contrib>
        <contrib contrib-type="author" corresp="yes">
          <contrib-id contrib-id-type="orcid">0000-0001-9359-911X</contrib-id>
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Гибадуллин</surname>
              <given-names>Руслан Фаршатович</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Gibadullin</surname>
              <given-names>Ruslan Farshatovich</given-names>
            </name>
          </name-alternatives>
          <email>rfgibadullin@kai.ru</email>
          <xref ref-type="aff">aff-2</xref>
        </contrib>
        <contrib contrib-type="author" corresp="yes">
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Гашигуллин</surname>
              <given-names>Данил Айратович</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Gashigullin</surname>
              <given-names>Danil Ayratovich</given-names>
            </name>
          </name-alternatives>
          <email>gashigullin44@gmail.com</email>
          <xref ref-type="aff">aff-3</xref>
        </contrib>
      </contrib-group>
      <aff-alternatives id="aff-1">
        <aff xml:lang="ru">Казанский национальный исследовательский технический университет им. А.Н. Туполева–КАИ</aff>
        <aff xml:lang="en">Kazan National Research Technical University named after A.N. Tupolev–KAI</aff>
      </aff-alternatives>
      <aff-alternatives id="aff-2">
        <aff xml:lang="ru">Казанский национальный исследовательский технический университет им. А.Н. Туполева–КАИ</aff>
        <aff xml:lang="en">Kazan National Research Technical University named after A.N. Tupolev–KAI</aff>
      </aff-alternatives>
      <aff-alternatives id="aff-3">
        <aff xml:lang="ru">Казанский национальный исследовательский технический университет им. А.Н. Туполева–КАИ</aff>
        <aff xml:lang="en">Kazan National Research Technical University named after A.N. Tupolev–KAI</aff>
      </aff-alternatives>
      <pub-date pub-type="epub">
        <day>01</day>
        <month>01</month>
        <year>2026</year>
      </pub-date>
      <volume>1</volume>
      <issue>1</issue>
      <elocation-id>10.26102/2310-6018/2023.41.2.023</elocation-id>
      <permissions>
        <copyright-statement>Copyright © Авторы, 2026</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/">
          <license-p>This work is licensed under a Creative Commons Attribution 4.0 International License</license-p>
        </license>
      </permissions>
      <self-uri xlink:href="https://moitvivt.ru/ru/journal/article?id=1359"/>
      <abstract xml:lang="ru">
        <p>Потоковая архитектура .NET основана на трех концепциях: опорные хранилища, декораторы и адаптеры. Опорное хранилище представляет собой конечную точку, такую как файл на накопителе, массив в оперативной памяти или сетевое подключение. Опорное хранилище не может использоваться, если программисту не открыт к нему доступ. Стандартным классом .NET, который предназначен для такой цели, является Stream (поток); он предоставляет стандартный набор методов, позволяющих выполнять побайтовое чтение, запись и позиционирование. Потоки делятся на две категории: потоки с опорными хранилищами и потоки с декораторами. Потоки с опорными хранилищами и потоки с декораторами имеют дело исключительно с байтами. Это гибко и эффективно, однако приложения часто работают на более высоких уровнях, таких как текст или XML. Адаптеры преодолевают такой разрыв, помещая поток в оболочку класса со специализированными методами, которые типизированы для конкретного формата. В статье представлен разработанный авторами декоратор StegoStream, основанный на ассоциативном механизме защиты данных. Данный декоратор обладает следующими преимуществами: он обеспечивает взаимодействие с адаптером; освобождает потоки с опорными хранилищами от необходимости самостоятельной реализации таких возможностей, как сокрытие и раскрытие; потоки, декорированные StegoStream, не страдают от изменения интерфейса; StegoStream можно использовать при соединении в цепочки с другими декораторами (например, декоратор сжатия можно соединить с декоратором сокрытия). Практическое использование декоратора StegoStream представлено на примере разработанного мультиклиентного защищенного чата с централизованным сервером.</p>
      </abstract>
      <trans-abstract xml:lang="en">
        <p>The .NET streaming architecture is based on three concepts: reference repositories, decorators, and adapters. A reference repository represents an endpoint, such as a file on a storage device, an array in RAM, or a network connection. It cannot be used unless the programmer has access to it. The standard .NET class designed for this purpose is Stream; it provides a standard set of methods that allow byte-by-byte reading, writing, and positioning. Streams fall into two categories: streams with reference repository and streams with decorators. Streams with reference repositories and streams with decorators deal exclusively with bytes. While flexible and efficient, applications often operate at higher levels, such as text or XML. Adapters bridge this gap by putting a stream into a class shell with specialized methods that are typified for a specific format. The paper presents the StegoStream decorator developed by the authors, which is based on associative data protection mechanism. This decorator has the following advantages: it provides interaction with the adapter; it releases streams with reference repositories from the necessity of independent implementation of such features as hiding and unhiding; streams decorated with StegoStream do not suffer from interface changes; StegoStream may be used when chaining with other decorators (for example, the compression decorator may be combined with the hiding decorator). Practical use of StegoStream decorator is presented drawing on the example of the developed multi-client secure chat with a centralized server.</p>
      </trans-abstract>
      <kwd-group xml:lang="ru">
        <kwd>ассоциативная стеганография</kwd>
        <kwd>криптография</kwd>
        <kwd>потоковая архитектура</kwd>
        <kwd>декоратор</kwd>
        <kwd>информационная безопасность</kwd>
      </kwd-group>
      <kwd-group xml:lang="en">
        <kwd>associative steganography</kwd>
        <kwd>cryptography</kwd>
        <kwd>streaming architecture</kwd>
        <kwd>decorator</kwd>
        <kwd>information security</kwd>
      </kwd-group>
      <funding-group>
        <funding-statement xml:lang="ru">Исследование выполнено без спонсорской поддержки.</funding-statement>
        <funding-statement xml:lang="en">The study was performed without external funding.</funding-statement>
      </funding-group>
    </article-meta>
  </front>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="cit1">
        <label>1</label>
        <mixed-citation xml:lang="ru">Duda R.O., Hart P.E., Stork D.G. Pattern classification and scene analysis. New York: Wiley. 1973;3:731–739.</mixed-citation>
      </ref>
      <ref id="cit2">
        <label>2</label>
        <mixed-citation xml:lang="ru">Raikhlin V.A., Vershinin I.S., Gibadullin R.F., Pystogov S.V. Reliable recognition of masked binary matrices. Connection to information security in map systems. Lobachevskii Journal of Mathematics, 2013;34(4):319–325. DOI: 10.1134/S1995080213040112.</mixed-citation>
      </ref>
      <ref id="cit3">
        <label>3</label>
        <mixed-citation xml:lang="ru">Raikhlin V.A., Gibadullin R.F., Vershinin I.S., Pystogov S.V. Reliable recognition of masked cartographic scenes during transmission over the network. In 2016 International Siberian Conference on Control and Communications (SIBCON), IEEE. 2016;1–5. DOI: 10.1109/SIBCON.2016.7491657.</mixed-citation>
      </ref>
      <ref id="cit4">
        <label>4</label>
        <mixed-citation xml:lang="ru">Tian X., Benkrid K. Mersenne twister random number generation on FPGA, CPU and GPU. 2009 NASA/ESA Conference on Adaptive Hardware and Systems, San Francisco, CA, USA. 2009;460–464. DOI: 10.1109/AHS.2009.11.</mixed-citation>
      </ref>
      <ref id="cit5">
        <label>5</label>
        <mixed-citation xml:lang="ru">Raikhlin V.A., Vershinin I.S., Gibadullin R.F. The elements of associative steganography theory. Moscow University Computational Mathematics and Cybernetics. 2019;43(1):40–46. DOI: 10.3103/S0278641919010072.</mixed-citation>
      </ref>
      <ref id="cit6">
        <label>6</label>
        <mixed-citation xml:lang="ru">Vershinin I.S., Gibadullin R.F., Pystogov S.V., Raikhlin V.A. Associative steganography. Durability of associative protection of information. Lobachevskii Journal of Mathematics. 2020;41(3):440–450. DOI: 10.1134/S1995080220030191.</mixed-citation>
      </ref>
      <ref id="cit7">
        <label>7</label>
        <mixed-citation xml:lang="ru">Vershinin I.S., Gibadullin R.F., Pystogov S.V., Raikhlin V.A. Associative steganography of text messages. Moscow University Computational Mathematics and Cybernetics. 2021;45(1):1–11. DOI: 10.3103/S0278641921010076.</mixed-citation>
      </ref>
      <ref id="cit8">
        <label>8</label>
        <mixed-citation xml:lang="ru">Raikhlin V.A., Gibadullin R.F., Vershinin I.S. Is it possible to reduce the sizes of stegomessages in associative steganography? Lobachevskii Journal of Mathematics. 2022;43(2):455–462.</mixed-citation>
      </ref>
      <ref id="cit9">
        <label>9</label>
        <mixed-citation xml:lang="ru">Albahari J. C# 10 in a Nutshell. O'Reilly Media, Inc.; 2022. 1061 p.</mixed-citation>
      </ref>
      <ref id="cit10">
        <label>10</label>
        <mixed-citation xml:lang="ru">Stego. Доступно по: https://bitbucket.org/landwatersun/stego/ (дата обращения: 15.04.2023).</mixed-citation>
      </ref>
      <ref id="cit11">
        <label>11</label>
        <mixed-citation xml:lang="ru">GostCryptography. Доступно по: https://github.com/AlexMAS/GostCryptography/ (дата обращения: 08.04.2023).</mixed-citation>
      </ref>
      <ref id="cit12">
        <label>12</label>
        <mixed-citation xml:lang="ru">ИнфоТеКС. Доступно по: https://infotecs.ru/ (дата обращения: 15.04.2023).</mixed-citation>
      </ref>
      <ref id="cit13">
        <label>13</label>
        <mixed-citation xml:lang="ru">Фомичев В.М., Бобровский Д.А., Коренева А.М. Экспериментальная оценка производительности одного класса криптоалгоритмов на основе обобщения сетей Фейстеля. Прикладная дискретная математика. Приложение. 2020;13:59-62. DOI: 10.17223/2226308X/13/18.</mixed-citation>
      </ref>
      <ref id="cit14">
        <label>14</label>
        <mixed-citation xml:lang="ru">Multi-Client Chat Server. Доступно по: https://bitbucket.org/landwatersun/multi-client-chat-server/ (дата обращения: 15.04.2023).</mixed-citation>
      </ref>
    </ref-list>
    <fn-group>
      <fn fn-type="conflict">
        <p>The authors declare that there are no conflicts of interest present.</p>
      </fn>
    </fn-group>
  </back>
</article>