From 82b5c000ea8112bac1aff6856d228dbc77623842 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC?=
 <stud179111@vyatsu.ru>
Date: Thu, 6 Mar 2025 21:47:24 +0300
Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?=
 =?UTF-8?q?=D0=BD=D1=8B=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20data.txt,=20scr?=
 =?UTF-8?q?ipt.py?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore | 1 +
 README.md  | 1 +
 data.txt   | 1 +
 script.py  | 7 +++++++
 4 files changed, 10 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 data.txt
 create mode 100644 script.py

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8cdcbba
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+output.txt
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..fa3fadd
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+Шифрование текста со сдвигом по ASCII
\ No newline at end of file
diff --git a/data.txt b/data.txt
new file mode 100644
index 0000000..f04fd8d
--- /dev/null
+++ b/data.txt
@@ -0,0 +1 @@
+qwertyuiop
\ No newline at end of file
diff --git a/script.py b/script.py
new file mode 100644
index 0000000..2748cb4
--- /dev/null
+++ b/script.py
@@ -0,0 +1,7 @@
+with open("data.txt", "r", encoding="utf-8") as file:
+    text = file.read()
+
+shifted_text = "".join(chr(ord(c) + 1) for c in text)
+
+with open("output.txt", "w", encoding="utf-8") as file:
+    file.write(shifted_text)