{"id":480117,"date":"2026-05-18T11:31:04","date_gmt":"2026-05-18T11:31:04","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=480117"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=480117","title":{"rendered":"\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043d\u0430 python"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\u042d\u0442\u043e \u043d\u0435\u00a0\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0433\u0430\u0439\u0434 \u043f\u043e\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0438 \u043d\u0435\u00a0\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432\u00a0production. \u0421\u043a\u043e\u0440\u0435\u0435, \u044d\u0442\u043e \u0440\u0430\u0437\u0431\u043e\u0440 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043d\u0430\u00a0Python \u0438 PySide6: \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044f \u0432\u044b\u0431\u0440\u0430\u043b, \u0441\u00a0\u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0438 \u0447\u0442\u043e\u00a0\u043f\u043e\u043d\u044f\u043b \u043f\u043e\u00a0\u0445\u043e\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 <\/p>\n<h2>\u041d\u0430\u0447\u0430\u043b\u043e \u043d\u0430\u0447\u0430\u043b<\/h2>\n<p>\u0412 2024\u00a0\u0433\u043e\u0434\u0443 \u044f \u043d\u0430\u0447\u0430\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440 \u043d\u0430\u00a0QT, \u043d\u043e\u00a0\u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0433\u043e\u0434 \u044f \u0432\u0441\u0442\u0430\u043b \u0432\u00a0\u0442\u0443\u043f\u0438\u043a \u0438 \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0435\u00a0\u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432\u00a0QT \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u00a0\u0431\u044b\u043b\u0430 \u043d\u0435\u00a0\u0432\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0430\u00a0\u0432\u00a0\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0PySide6. <\/p>\n<h2>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438<\/h2>\n<p>\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044f\u0437\u044b\u043a\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b Python, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043d\u0430\u00a0\u043d\u0435\u043c \u043f\u0438\u0448\u0443 \u0443\u0436\u0435 7\u00a0\u043b\u0435\u0442 \u0438 \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e\u00a0\u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u00a0\u043d\u0435\u043c, \u043d\u0430\u0434\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043c\u0435\u0442\u044c.<\/p>\n<p>\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u00a0\u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d QT \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 pyside6. \u0421\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e QT \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u044d\u0442\u043e\u043c\u00a0\u2014 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c.<\/p>\n<p>\u042f \u0432\u044b\u0431\u0440\u0430\u043b \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443: \u0434\u0430\u043d\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c, \u0430\u00a0\u0441\u0430\u043c \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f RSA. \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0447\u0435\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e RSA, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u043e\u0445\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043c\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0432\u00a0\u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0440\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f RSA-1024, \u0447\u0442\u043e\u00a0\u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0436\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c. \u0412\u00a0\u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u044f\u00a0\u0431\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u044d\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043d\u0430\u00a0RSA-2048\/3072\u00a0\u0438\u043b\u0438\u00a0\u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0441\u0445\u0435\u043c\u0443 \u0432\u00a0\u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.<\/p>\n<pre><code class=\"python\">    #\u041c\u0435\u0442\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430    def gen_sync_key(self):        with open(self.sync_key_path, 'wb') as key:            key.write(get_random_bytes(32))        #\u041c\u0435\u0442\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430    def gen_async_key(self):        keys = RSA.generate(1024)        with open(self.async_public_key_path, 'wb') as key_pub:            key_pub.write(keys.public_key().export_key())        with open(self.async_private_key_path, 'wb') as key_private:            key_private.write(keys.export_key(format='PEM', passphrase=self.password, protection='PBKDF2WithHMAC-SHA512AndAES256-CBC', prot_params={'iteration_count':131072}))        #\u041c\u0435\u0442\u043e\u0434 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f    def synchronous_key_encryption(self):        with open(self.sync_key_path, 'rb') as sync_key:            sync_key = sync_key.read()        with open(self.async_public_key_path, 'rb') as async_key:            async_key = RSA.import_key(async_key.read(), self.password)                encrypt = PKCS1_OAEP.new(async_key)        encrypt = encrypt.encrypt(sync_key)        with open(self.sync_key_path, 'wb') as sync_key:            sync_key.write(encrypt)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p><code>\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 --&gt; \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c RSA --&gt; \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435<\/code>.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a\u00a0\u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0432\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0421\u0423\u0411\u0414\u00a0\u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d sqlite3. \u0412\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f\u00a0\u0432\u0445\u043e\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u00a0\u0432\u0438\u0434\u0435 \u0445\u044d\u0448\u044d\u0439 \u0441 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A1%D0%BE%D0%BB%D1%8C_(%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D1%8F)\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u043b\u044c\u044e<\/a>. \u0417\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0439: \u0438\u043c\u044f \u0437\u0430\u043f\u0438\u0441\u0438, \u0438\u043c\u044f \u0441\u0430\u0439\u0442\u0430\/\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043b\u043e\u0433\u0438\u043d, \u043f\u043e\u0447\u0442\u0430, \u043f\u0430\u0440\u043e\u043b\u044c. \u0412\u00a0\u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0447\u0442\u0443 \u0438 \u043f\u0430\u0440\u043e\u043b\u044c. \u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0440\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u043b\u043e\u0433\u0438\u043d \u0442\u043e\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432.<\/p>\n<pre><code class=\"python\">#\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u043b\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u0438 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f    def sault_func(self, user_name:str, user_password:str, sault:bytes=get_random_bytes(32)):        user_name = bytes(user_name, encoding=\"utf-8\")        user_password = bytes(user_password, encoding=\"utf-8\")        sault_user_name = sault[:len(sault)\/\/2]+user_name+sault[len(sault)\/\/2:]        sault_user_password = sault[:len(sault)\/\/2]+user_password+sault[len(sault)\/\/2:]                return {\"sault\": sault, \"sault_user_name\": sault_user_name, \"sault_user_password\": sault_user_password}      <\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0438 RSA \u0438\u043c\u0435\u044e\u0442 \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u00a0\u0432\u0445\u043e\u0434\u0435 \u0432\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041e\u0434\u043d\u043e \u0438\u0437\u00a0\u0441\u0430\u043c\u044b\u0445 \u0441\u043f\u043e\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439\u00a0\u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u0447\u0435\u0440\u0435\u0437 keyring. \u0421\u00a0\u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u043e \u043d\u0435\u00a0\u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e, \u043d\u043e\u00a0\u0441\u00a0\u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0433\u0440\u043e\u0437 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f\u00a0\u0431\u044b \u043b\u0443\u0447\u0448\u0435 \u0445\u0440\u0430\u043d\u0438\u043b \u043d\u0435\u00a0\u0441\u0430\u043c \u043f\u0430\u0440\u043e\u043b\u044c, \u0430\u00a0\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 KDF, \u0438 \u043e\u0447\u0438\u0449\u0430\u043b\u00a0\u0431\u044b \u0435\u0433\u043e \u0438\u0437\u00a0\u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n<pre><code class=\"python\">class CachePassword:    def __init__(self, password=None, name_service=None, time_del_pwd=0):        self.PASSWORD = password        self.NAME_SERVICE = name_service        self.time_del_pwd = time_del_pwd        self.user_name = socket.gethostname()        #\u041c\u0435\u0442\u043e\u0434 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u044d\u0448    def set_password(self):        keyring.set_password(self.NAME_SERVICE, self.user_name, self.PASSWORD)        #\u041c\u0435\u0442\u043e\u0434 \u0432\u044b\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u044d\u0448\u0430    def get_password(self):        return keyring.get_password(self.NAME_SERVICE, self.user_name)        #\u041c\u0435\u0442\u043e\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u044d\u0448\u0430    def del_timer(self):        timer = threading.Timer(self.time_del_pwd, self.del_password)        timer.daemon = True        timer.start()        #\u041c\u0435\u0442\u043e\u0434 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u044d\u0448\u0430    def del_password(self):        keyring.delete_password(self.NAME_SERVICE, self.user_name)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h2>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b<\/h2>\n<p>\u0418\u0437 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e: \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0432\u0445\u043e\u0434\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/edc\/943\/6b6\/edc9436b6e9c607545848ebde6855c0f.png\" alt=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\" title=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\" width=\"805\" height=\"352\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/edc\/943\/6b6\/edc9436b6e9c607545848ebde6855c0f.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/edc\/943\/6b6\/edc9436b6e9c607545848ebde6855c0f.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u043e \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e.<\/p>\n<p>\u041f\u043e\u0434\u00a0\u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u00ab+\u00bb \u0443\u00a0\u043d\u0430\u0441 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u044f. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0435\u00a0\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430\u00a0\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u043e\u00a0\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u0440\u0443\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6a2\/b37\/2c4\/6a2b372c42cd0f5b2186a15fcf568935.png\" alt=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438\" title=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438\" width=\"518\" height=\"334\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/6a2\/b37\/2c4\/6a2b372c42cd0f5b2186a15fcf568935.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6a2\/b37\/2c4\/6a2b372c42cd0f5b2186a15fcf568935.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"python\">#\u041a\u043b\u0430\u0441\u0441 \u0433\u0435\u043d\u0438\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u0439class GenerationPassword:    def __init__(self, len_password:int):        self.len_password = len_password        self.chars_number = ''.join(string.printable.split())        #\u041c\u0435\u0442\u043e\u0434 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u044f    def validation(self, user_password):        if not bool(re.search(\"[a-z]\", user_password)):            return False        if not bool(re.search(\"[A-Z]\", user_password)):            return False        if not bool(re.search(\"[0-9]\", user_password)):            return False        if not bool(re.search(\"[\"+ re.escape(string.punctuation)+ \"]\", user_password)):            return False                return True        #\u041c\u0435\u0442\u043e\u0434 \u0433\u0435\u043d\u0438\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u044f    def generation_password(self):        while True:            password = ''.join([secrets.choice(self.chars_number) for _ in range(self.len_password)])            if self.validation(user_password=password):                return password<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0434\u00a0\u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u043d\u0438\u0437\u00a0\u2014 \u0438\u043c\u043f\u043e\u0440\u0442 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0438\u0437\u00a0csv \u0444\u0430\u0439\u043b\u0430. \u041c\u043e\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438 \u0438\u0437\u00a0\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4e8\/8e0\/de8\/4e88e0de8e03c9143d54f9c2fe0c0842.png\" alt=\"\u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 csv\" title=\"\u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 csv\" width=\"541\" height=\"253\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/4e8\/8e0\/de8\/4e88e0de8e03c9143d54f9c2fe0c0842.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4e8\/8e0\/de8\/4e88e0de8e03c9143d54f9c2fe0c0842.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 csv<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0432\u0432\u0435\u0440\u0445\u00a0\u2014 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432\u00a0csv. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0432\u00a0\u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043b\u0438\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u0438 \u043d\u0430\u00a0\u043d\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cd5\/b5f\/4d7\/cd5b5f4d7bb19d8f15c5f2d1418142c4.png\" alt=\"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 csv\" title=\"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 csv\" width=\"568\" height=\"384\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/cd5\/b5f\/4d7\/cd5b5f4d7bb19d8f15c5f2d1418142c4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cd5\/b5f\/4d7\/cd5b5f4d7bb19d8f15c5f2d1418142c4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 csv<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u0430\u043c \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u043f\u0440\u0438\u00a0\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438. \u041e\u043d\u0430 \u043b\u0435\u0433\u043a\u0430\u044f, \u043d\u043e\u00a0\u043e\u0442\u00a0\u043d\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u043d\u0435\u00a0\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.\u00a0\u0411\u044b\u043b\u0430 \u043c\u044b\u0441\u043b\u044c \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442\u00a0\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u0432\u043e\u0434\u0430 \u00ab\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e\u00bb \u043f\u0430\u0440\u043e\u043b\u044f, \u043d\u043e\u00a0\u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e\u2011\u0442\u043e \u0440\u0435\u0448\u0438\u0442 \u0447\u0442\u043e\u00a0\u044d\u0442\u043e\u00a0\u043b\u0438\u0448\u043d\u0435\u0435 \u0434\u043b\u044f\u00a0\u043d\u0435\u0433\u043e, \u043c\u043e\u0436\u0435\u0442 \u0441\u043c\u0435\u043b\u043e \u0432\u044b\u0440\u0435\u0437\u0430\u0442\u044c.<\/p>\n<pre><code class=\"python\">#\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445    def validation(self):        if not self.user_data or self.user_name in self.user_password:            return False        if not len(self.user_password) &gt;= 8:            return False        if bool(re.search(\"[ ]\", self.user_password)):            return False        if bool(re.search(\"[\u0430-\u044f\u0410-\u0451\u0401]\", self.user_data)):            return False        if not bool(re.search(\"[a-z]\", self.user_password)):            return False        if not bool(re.search(\"[A-Z]\", self.user_password)):            return False        if not bool(re.search(\"[0-9]\", self.user_password)):            return False        if not bool(re.search(\"[!-_#@%$*?\/|&amp;)}{&lt;&gt;+='(,)^:;\u2116%*.]\", self.user_password)):            return False                return True<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438)<\/p>\n<h2>\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f<\/h2>\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439\u00a0\u0431\u044b\u043b\u0438 \u043a\u0430\u0441\u0430\u0435\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u043d\u043e\u00a0\u044d\u0442\u043e \u0432\u0441\u0435 \u043c\u0435\u043b\u043e\u0447\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u0430\u043a \u043d\u0435\u00a0\u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<\/p>\n<p>\u0421\u0430\u043c\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430\u00a0\u2014 \u043b\u0430\u0433\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0435\u0441\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e\u00a0\u0440\u0435\u0448\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430 \u0432\u00a0\u0442\u043e\u043c \u0447\u0442\u043e\u00a0\u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0441 (\u043a\u0430\u0436\u0434\u043e\u0435 \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438\u00a0\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043e\u043a\u043d\u0430), \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e. \u0420\u0435\u0448\u0438\u043b \u044f \u044d\u0442\u043e \u0442\u0435\u043c, \u0447\u0442\u043e\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u00a0\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043d\u0430\u00a0\u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a\u00a0\u043e\u0431\u043a\u0430\u0434\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043b\u044f\u00a0\u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 \u043d\u0430\u00a0\u043d\u043e\u0432\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u0441\u00a0\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u0441\u00a0QT, \u043d\u043e\u00a0\u0441\u00a0\u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0443\u00a0\u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u041f\u041e\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c.<\/p>\n<p>\u0412\u00a0\u043f\u043b\u0430\u043d\u0430\u0445 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0447\u0442\u043e\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0432\u00a0\u0440\u043e\u0441\u0441\u0438\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0430\u00a0\u0438\u0445 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0438\u043a\u0442\u043e \u043d\u0435\u00a0\u0445\u043e\u0447\u0435\u0442. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0442. \u0421\u0441\u044b\u043b\u043a\u0443 \u043d\u0430\u00a0\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0432\u00a0\u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438: \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u043a\u0435, \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c \u043f\u043e\u00a0\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u043f\u043e\u00a0\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u043a\u0430 \u0434\u0435\u043d\u044c\u0433\u0438 \u043d\u0435\u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 <a href=\"https:\/\/t.me\/puky_kaky\" rel=\"noopener noreferrer nofollow\">\u0442\u0433\u043a<\/a>, <a href=\"https:\/\/github.com\/safe-life-system\" rel=\"noopener noreferrer nofollow\">github <\/a>\u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u043d\u0430\u00a0\u043c\u043e\u0439 <a href=\"https:\/\/www.safe-life-site.ru\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0430\u0439\u0442<\/a>, \u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0445\u043e\u0442\u0438\u0442\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0447\u0442\u043e\u2011\u0442\u043e \u0447\u0442\u043e\u00a0\u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u043e\u00a0\u044f \u043f\u0440\u043e\u00a0\u044d\u0442\u043e \u043d\u0435\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b, \u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1036412\/\">https:\/\/habr.com\/ru\/articles\/1036412\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435\u042d\u0442\u043e \u043d\u0435\u00a0\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0433\u0430\u0439\u0434 \u043f\u043e\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0438 \u043d\u0435\u00a0\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432\u00a0production. \u0421\u043a\u043e\u0440\u0435\u0435, \u044d\u0442\u043e \u0440\u0430\u0437\u0431\u043e\u0440 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043d\u0430\u00a0Python \u0438 PySide6: \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044f \u0432\u044b\u0431\u0440\u0430\u043b, \u0441\u00a0\u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0438 \u0447\u0442\u043e\u00a0\u043f\u043e\u043d\u044f\u043b \u043f\u043e\u00a0\u0445\u043e\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u044b.\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u041d\u0430\u0447\u0430\u043b\u043e \u043d\u0430\u0447\u0430\u043b\u0412 2024\u00a0\u0433\u043e\u0434\u0443 \u044f \u043d\u0430\u0447\u0430\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440 \u043d\u0430\u00a0QT, \u043d\u043e\u00a0\u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0433\u043e\u0434 \u044f \u0432\u0441\u0442\u0430\u043b \u0432\u00a0\u0442\u0443\u043f\u0438\u043a \u0438 \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0435\u00a0\u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432\u00a0QT \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u00a0\u0431\u044b\u043b\u0430 \u043d\u0435\u00a0\u0432\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0430\u00a0\u0432\u00a0\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0PySide6. \u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044f\u0437\u044b\u043a\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b Python, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043d\u0430\u00a0\u043d\u0435\u043c \u043f\u0438\u0448\u0443 \u0443\u0436\u0435 7\u00a0\u043b\u0435\u0442 \u0438 \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e\u00a0\u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u00a0\u043d\u0435\u043c, \u043d\u0430\u0434\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043c\u0435\u0442\u044c.\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u00a0\u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d QT \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 pyside6. \u0421\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e QT \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u044d\u0442\u043e\u043c\u00a0\u2014 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c.\u042f \u0432\u044b\u0431\u0440\u0430\u043b \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443: \u0434\u0430\u043d\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c, \u0430\u00a0\u0441\u0430\u043c \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f RSA. \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0447\u0435\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e RSA, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u043e\u0445\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043c\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.\u041e\u0434\u043d\u0430\u043a\u043e \u0432\u00a0\u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0440\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f RSA-1024, \u0447\u0442\u043e\u00a0\u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0436\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c. \u0412\u00a0\u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u044f\u00a0\u0431\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u044d\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043d\u0430\u00a0RSA-2048\/3072\u00a0\u0438\u043b\u0438\u00a0\u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0441\u0445\u0435\u043c\u0443 \u0432\u00a0\u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.    #\u041c\u0435\u0442\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430    def gen_sync_key(self):        with open(self.sync_key_path, &#8216;wb&#8217;) as key:            key.write(get_random_bytes(32))        #\u041c\u0435\u0442\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430    def gen_async_key(self):        keys = RSA.generate(1024)        with open(self.async_public_key_path, &#8216;wb&#8217;) as key_pub:            key_pub.write(keys.public_key().export_key())        with open(self.async_private_key_path, &#8216;wb&#8217;) as key_private:            key_private.write(keys.export_key(format=&#8217;PEM&#8217;, passphrase=self.password, protection=&#8217;PBKDF2WithHMAC-SHA512AndAES256-CBC&#8217;, prot_params={&#8216;iteration_count&#8217;:131072}))        #\u041c\u0435\u0442\u043e\u0434 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f    def synchronous_key_encryption(self):        with open(self.sync_key_path, &#8216;rb&#8217;) as sync_key:            sync_key = sync_key.read()        with open(self.async_public_key_path, &#8216;rb&#8217;) as async_key:            async_key = RSA.import_key(async_key.read(), self.password)                encrypt = PKCS1_OAEP.new(async_key)        encrypt = encrypt.encrypt(sync_key)        with open(self.sync_key_path, &#8216;wb&#8217;) as sync_key:            sync_key.write(encrypt)\u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0442\u0430\u043a:\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 &#8212;&gt; \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c RSA &#8212;&gt; \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.\u0422\u0430\u043a \u043a\u0430\u043a\u00a0\u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0432\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0421\u0423\u0411\u0414\u00a0\u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d sqlite3. \u0412\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f\u00a0\u0432\u0445\u043e\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u00a0\u0432\u0438\u0434\u0435 \u0445\u044d\u0448\u044d\u0439 \u0441 \u0441\u043e\u043b\u044c\u044e. \u0417\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0439: \u0438\u043c\u044f \u0437\u0430\u043f\u0438\u0441\u0438, \u0438\u043c\u044f \u0441\u0430\u0439\u0442\u0430\/\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043b\u043e\u0433\u0438\u043d, \u043f\u043e\u0447\u0442\u0430, \u043f\u0430\u0440\u043e\u043b\u044c. \u0412\u00a0\u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0447\u0442\u0443 \u0438 \u043f\u0430\u0440\u043e\u043b\u044c. \u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0440\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u043b\u043e\u0433\u0438\u043d \u0442\u043e\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432.#\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u043b\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u0438 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f    def sault_func(self, user_name:str, user_password:str, sault:bytes=get_random_bytes(32)):        user_name = bytes(user_name, encoding=&#187;utf-8&#8243;)        user_password = bytes(user_password, encoding=&#187;utf-8&#8243;)        sault_user_name = sault[:len(sault)\/\/2]+user_name+sault[len(sault)\/\/2:]        sault_user_password = sault[:len(sault)\/\/2]+user_password+sault[len(sault)\/\/2:]                return {&#171;sault&#187;: sault, &#171;sault_user_name&#187;: sault_user_name, &#171;sault_user_password&#187;: sault_user_password}      \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0438 RSA \u0438\u043c\u0435\u044e\u0442 \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u00a0\u0432\u0445\u043e\u0434\u0435 \u0432\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041e\u0434\u043d\u043e \u0438\u0437\u00a0\u0441\u0430\u043c\u044b\u0445 \u0441\u043f\u043e\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439\u00a0\u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u0447\u0435\u0440\u0435\u0437 keyring. \u0421\u00a0\u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u043e \u043d\u0435\u00a0\u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e, \u043d\u043e\u00a0\u0441\u00a0\u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0433\u0440\u043e\u0437 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f\u00a0\u0431\u044b \u043b\u0443\u0447\u0448\u0435 \u0445\u0440\u0430\u043d\u0438\u043b \u043d\u0435\u00a0\u0441\u0430\u043c \u043f\u0430\u0440\u043e\u043b\u044c, \u0430\u00a0\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 KDF, \u0438 \u043e\u0447\u0438\u0449\u0430\u043b\u00a0\u0431\u044b \u0435\u0433\u043e \u0438\u0437\u00a0\u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b.class CachePassword:    def __init__(self, password=None, name_service=None, time_del_pwd=0):        self.PASSWORD = password        self.NAME_SERVICE = name_service        self.time_del_pwd = time_del_pwd        self.user_name = socket.gethostname()        #\u041c\u0435\u0442\u043e\u0434 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u044d\u0448    def set_password(self):        keyring.set_password(self.NAME_SERVICE, self.user_name, self.PASSWORD)        #\u041c\u0435\u0442\u043e\u0434 \u0432\u044b\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u044d\u0448\u0430    def get_password(self):        return keyring.get_password(self.NAME_SERVICE, self.user_name)        #\u041c\u0435\u0442\u043e\u0434 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u044d\u0448\u0430    def del_timer(self):        timer = threading.Timer(self.time_del_pwd, self.del_password)        timer.daemon = True        timer.start()        #\u041c\u0435\u0442\u043e\u0434 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u044d\u0448\u0430    def del_password(self):        keyring.delete_password(self.NAME_SERVICE, self.user_name)\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0418\u0437 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e: \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0432\u0445\u043e\u0434\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0435\u0439\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u043e \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e.\u041f\u043e\u0434\u00a0\u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u00ab+\u00bb \u0443\u00a0\u043d\u0430\u0441 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u044f. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0435\u00a0\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430\u00a0\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u043e\u00a0\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u0440\u0443\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438#\u041a\u043b\u0430\u0441\u0441 \u0433\u0435\u043d\u0438\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u0439class GenerationPassword:    def __init__(self, len_password:int):        self.len_password = len_password        self.chars_number = &#187;.join(string.printable.split())        #\u041c\u0435\u0442\u043e\u0434 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u044f    def validation(self, user_password):        if not bool(re.search(&#171;[a-z]&#187;, user_password)):            return False        if not bool(re.search(&#171;[A-Z]&#187;, user_password)):            return False        if not bool(re.search(&#171;[0-9]&#187;, user_password)):            return False        if not bool(re.search(&#171;[&#171;+ re.escape(string.punctuation)+ &#171;]&#187;, user_password)):            return False                return True        #\u041c\u0435\u0442\u043e\u0434 \u0433\u0435\u043d\u0438\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u044f    def generation_password(self):        while True:            password = &#187;.join([secrets.choice(self.chars_number) for _ in range(self.len_password)])            if self.validation(user_password=password):                return password\u041f\u043e\u0434\u00a0\u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u043d\u0438\u0437\u00a0\u2014 \u0438\u043c\u043f\u043e\u0440\u0442 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0438\u0437\u00a0csv \u0444\u0430\u0439\u043b\u0430. \u041c\u043e\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438 \u0438\u0437\u00a0\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430:\u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 csv\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0432\u0432\u0435\u0440\u0445\u00a0\u2014 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432\u00a0csv. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0432\u00a0\u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043b\u0438\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u0438 \u043d\u0430\u00a0\u043d\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 csv\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u0430\u043c \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438.\u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u043f\u0440\u0438\u00a0\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438. \u041e\u043d\u0430 \u043b\u0435\u0433\u043a\u0430\u044f, \u043d\u043e\u00a0\u043e\u0442\u00a0\u043d\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u043d\u0435\u00a0\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.\u00a0\u0411\u044b\u043b\u0430 \u043c\u044b\u0441\u043b\u044c \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442\u00a0\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u0432\u043e\u0434\u0430 \u00ab\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e\u00bb \u043f\u0430\u0440\u043e\u043b\u044f, \u043d\u043e\u00a0\u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e\u2011\u0442\u043e \u0440\u0435\u0448\u0438\u0442 \u0447\u0442\u043e\u00a0\u044d\u0442\u043e\u00a0\u043b\u0438\u0448\u043d\u0435\u0435 \u0434\u043b\u044f\u00a0\u043d\u0435\u0433\u043e, \u043c\u043e\u0436\u0435\u0442 \u0441\u043c\u0435\u043b\u043e \u0432\u044b\u0440\u0435\u0437\u0430\u0442\u044c.#\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445    def validation(self):        if not self.user_data or self.user_name in self.user_password:            return False        if not len(self.user_password) &gt;= 8:            return False        if bool(re.search(&#171;[ ]&#187;, self.user_password)):            return False        if bool(re.search(&#171;[\u0430-\u044f\u0410-\u0451\u0401]&#187;, self.user_data)):            return False        if not bool(re.search(&#171;[a-z]&#187;, self.user_password)):            return False        if not bool(re.search(&#171;[A-Z]&#187;, self.user_password)):            return False        if not bool(re.search(&#171;[0-9]&#187;, self.user_password)):            return False        if not bool(re.search(&#171;[!-_#@%$*?\/|&amp;)}{&lt;&gt;+='(,)^:;\u2116%*.]&#187;, self.user_password)):            return False                return True\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438)\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439\u00a0\u0431\u044b\u043b\u0438 \u043a\u0430\u0441\u0430\u0435\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u043d\u043e\u00a0\u044d\u0442\u043e \u0432\u0441\u0435 \u043c\u0435\u043b\u043e\u0447\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u0430\u043a \u043d\u0435\u00a0\u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.\u0421\u0430\u043c\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430\u00a0\u2014 \u043b\u0430\u0433\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0435\u0441\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e\u00a0\u0440\u0435\u0448\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430 \u0432\u00a0\u0442\u043e\u043c \u0447\u0442\u043e\u00a0\u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0441 (\u043a\u0430\u0436\u0434\u043e\u0435 \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438\u00a0\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043e\u043a\u043d\u0430), \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e. \u0420\u0435\u0448\u0438\u043b \u044f \u044d\u0442\u043e \u0442\u0435\u043c, \u0447\u0442\u043e\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u00a0\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043d\u0430\u00a0\u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0412\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a\u00a0\u043e\u0431\u043a\u0430\u0434\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043b\u044f\u00a0\u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 \u043d\u0430\u00a0\u043d\u043e\u0432\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u0441\u00a0\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u0441\u00a0QT, \u043d\u043e\u00a0\u0441\u00a0\u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0443\u00a0\u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u041f\u041e\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c.\u0412\u00a0\u043f\u043b\u0430\u043d\u0430\u0445 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0447\u0442\u043e\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0432\u00a0\u0440\u043e\u0441\u0441\u0438\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0430\u00a0\u0438\u0445 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0438\u043a\u0442\u043e \u043d\u0435\u00a0\u0445\u043e\u0447\u0435\u0442. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0442. \u0421\u0441\u044b\u043b\u043a\u0443 \u043d\u0430\u00a0\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0432\u00a0\u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438: \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u043a\u0435, \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c \u043f\u043e\u00a0\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u043f\u043e\u00a0\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u043a\u0430 \u0434\u0435\u043d\u044c\u0433\u0438 \u043d\u0435\u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u0442\u0433\u043a, github \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u043d\u0430\u00a0\u043c\u043e\u0439 \u0441\u0430\u0439\u0442, \u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0445\u043e\u0442\u0438\u0442\u0435.\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0447\u0442\u043e\u2011\u0442\u043e \u0447\u0442\u043e\u00a0\u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u043e\u00a0\u044f \u043f\u0440\u043e\u00a0\u044d\u0442\u043e \u043d\u0435\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b, \u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1036412\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-480117","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/480117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=480117"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/480117\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=480117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=480117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=480117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}