From d0d1b5c07aa01ceccfddd6357280cfd7f94e3abc Mon Sep 17 00:00:00 2001 From: Vladimir Vaskov Date: Wed, 15 May 2024 18:13:32 +0300 Subject: [PATCH] =?UTF-8?q?style:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/cachier/storager.vala | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/client/cachier/storager.vala b/src/client/cachier/storager.vala index e01033eb..25a4bdfd 100644 --- a/src/client/cachier/storager.vala +++ b/src/client/cachier/storager.vala @@ -495,14 +495,13 @@ namespace Cassette.Client.Cachier { yield; } + /** + * Simple encoding to protect DRM content from direct access. + * Please do not publish an uncoded version on the Internet and do + * not distribute a workaround (albeit a simple one). + * This may cause the developer to have problems with Yandex. + */ void simple_dencode (ref uint8[] data) { - /** - Простое кодирование для защиты DRM контента от прямого доступа. - Просьба не публиковать в интернете версию без кодирования и - не распространять способ обхода (пусть и простой). - Это может вызвать у разработчика проблемы с Яндексом - */ - for (int i = 0; i < data.length; i++) { data[i] = data[i] ^ 0xFF; }