{"id":135340,"date":"2026-07-22T13:14:58","date_gmt":"2026-07-22T07:14:58","guid":{"rendered":"https:\/\/rcl-radio.ru\/?p=135340"},"modified":"2026-07-22T13:14:58","modified_gmt":"2026-07-22T07:14:58","slug":"%d0%b7%d0%b0%d1%87%d0%b5%d0%bc-%d0%bd%d1%83%d0%b6%d0%bd%d0%b0-%d1%81%d0%be%d0%bb%d1%8c-salt-%d0%bf%d1%80%d0%b8-%d1%85%d1%80%d0%b0%d0%bd%d0%b5%d0%bd%d0%b8%d0%b8-%d0%bf%d0%b0%d1%80%d0%be%d0%bb%d0%b5","status":"publish","type":"post","link":"https:\/\/rcl-radio.ru\/?p=135340","title":{"rendered":"\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u0430 \u0441\u043e\u043b\u044c (salt) \u043f\u0440\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u0439: \u0440\u0430\u0437\u0431\u043e\u0440 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438"},"content":{"rendered":"<p>\u0421\u043e\u043b\u044c\u00a0\u2014\u00a0\u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u043a \u043f\u0430\u0440\u043e\u043b\u044e \u043f\u0435\u0440\u0435\u0434 \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c. \u0415\u0451 \u0445\u0440\u0430\u043d\u044f\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u044f\u0434\u043e\u043c \u0441 \u0445\u0435\u0448\u0435\u043c. \u0421\u043e\u043b\u044c \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0435\u0451 \u0437\u0430\u0434\u0430\u0447\u0430\u00a0\u2014\u00a0\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0445\u0435\u0448 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442.<\/p>\n<hr \/>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u0435\u0437 \u0441\u043e\u043b\u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e<\/h2>\n<p>\u0425\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0430: \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0432\u0445\u043e\u0434 \u043e\u043d\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0430\u0451\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0432\u044b\u0445\u043e\u0434. \u0415\u0441\u043b\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0434\u0432\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a01: \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u043e\u043b\u0438 \u2192 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0445\u0435\u0448\u0438.<\/strong><br \/>\n\u0415\u0441\u043b\u0438 \u0443 100\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0430\u0440\u043e\u043b\u044c <code class=\"CodeInlined\">123456<\/code>, \u0432 \u0431\u0430\u0437\u0435 \u0431\u0443\u0434\u0435\u0442 100\u00a0\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0445\u0435\u0448\u0435\u0439. \u0417\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0445\u0435\u0448\u00a0\u2014\u00a0\u0438 \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u044d\u0442\u0438\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430\u043c.<\/p>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a02: \u0440\u0430\u0434\u0443\u0436\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/strong><br \/>\n\u042d\u0442\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u0430\u0437\u044b, \u0433\u0434\u0435 \u0434\u043b\u044f \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0443\u0436\u0435 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u0445\u0435\u0448\u0438. \u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b, \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0449\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432 \u0442\u0430\u043a\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u0438.<\/p>\n<p>\u0421\u043e\u043b\u044c \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043e\u0431\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043e\u043d\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0445\u0435\u0448\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<hr \/>\n<h2>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/h2>\n<p>\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f:<\/p>\n<ol>\n<li data-value=\"1.\" data-shift=\"1\">\u041f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0441\u043e\u043b\u044c.<\/li>\n<li data-value=\"2.\" data-shift=\"1\">\u041f\u0430\u0440\u043e\u043b\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442 \u0441 \u0441\u043e\u043b\u044c\u044e.<\/li>\n<li data-value=\"3.\" data-shift=\"1\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0445\u0435\u0448\u0438\u0440\u0443\u044e\u0442.<\/li>\n<li data-value=\"4.\" data-shift=\"1\">\u0412 \u0431\u0430\u0437\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442 \u0441\u043e\u043b\u044c \u0438 \u0445\u0435\u0448 (\u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0435 \u0445\u0440\u0430\u043d\u044f\u0442).<\/li>\n<li data-value=\"5.\" data-shift=\"1\">\u041f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u0431\u0435\u0440\u0443\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u0443\u044e \u0441\u043e\u043b\u044c, \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442 \u0441 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c, \u0445\u0435\u0448\u0438\u0440\u0443\u044e\u0442 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442 \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c \u0445\u0435\u0448\u0435\u043c.<\/li>\n<\/ol>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 PHP (\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434)<\/h3>\n<p>\u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u00ab\u0441\u043e\u043b\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e\u00bb \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 MD5 \u0438\u043b\u0438 SHA\u2011256. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0430\u043c\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0441\u043e\u043b\u044c.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0445\u0435\u0448\u0430<\/span>\r\n$password = <span style=\"color: #ff0000;\">'my_secret_password'<\/span>;\r\n$hash = password_hash<span style=\"color: #66cc66;\">(<\/span>$password, PASSWORD_DEFAULT<span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ $hash \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0441\u043e\u043b\u044c \u0438 \u0441\u0430\u043c \u0445\u0435\u0448 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f $hash: $2y$10$XY12ab... (\u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430)<\/span>\r\n\u00a0\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0411\u0414 \u0442\u043e\u043b\u044c\u043a\u043e $hash<\/span>\r\n$stmt = $pdo-<span style=\"color: #66cc66;\">&gt;<\/span>prepare<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'INSERT INTO users (email, password_hash) VALUES (?, ?)'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n$stmt-<span style=\"color: #66cc66;\">&gt;<\/span>execute<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">[<\/span>$email, $hash<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u0412\u0445\u043e\u0434: \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u044f<\/span>\r\n$inputPassword = $_POST<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'password'<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\n$storedHash = $row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'password_hash'<\/span><span style=\"color: #66cc66;\">]<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u0437\u044f\u043b\u0438 \u0438\u0437 \u0411\u0414<\/span>\r\n\u00a0\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>password_verify<span style=\"color: #66cc66;\">(<\/span>$inputPassword, $storedHash<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u0430\u0440\u043e\u043b\u044c \u0432\u0435\u0440\u043d\u044b\u0439, \u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span> <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    <span style=\"color: #808080; font-style: italic;\">\/\/ \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u043e\u043b\u044c \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e: <code class=\"CodeInlined\">password_hash<\/code> \u0441\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0442\u043e\u0439\u043a\u0443\u044e \u0441\u043e\u043b\u044c, \u0430 <code class=\"CodeInlined\">password_verify<\/code> \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u0435\u0451 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u0445\u0435\u0448\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438. \u042d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043b\u044f PHP\u00a07.4 \u0438 \u043d\u043e\u0432\u0435\u0435.<\/p>\n<hr \/>\n<h2>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u00ab\u0441\u043e\u043b\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e\u00bb \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/h2>\n<p>\u0427\u0430\u0441\u0442\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430\u00a0\u2014\u00a0\u0431\u0440\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u043e\u0431\u0449\u0443\u044e \u0441\u043e\u043b\u044c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0451 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u041f\u041b\u041e\u0425\u041e\u0419 \u041f\u0420\u0418\u041c\u0415\u0420 (\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435)<\/span>\r\n$globalSalt = <span style=\"color: #ff0000;\">'fixed_salt_string'<\/span>;\r\n$hash = hash<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'sha256'<\/span>, $password . $globalSalt<span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u041c\u0438\u043d\u0443\u0441\u044b \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u0423 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0431\u0443\u0434\u0443\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0445\u0435\u0448\u0438.<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0415\u0441\u043b\u0438 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a \u0443\u0437\u043d\u0430\u0435\u0442 \u043e\u0431\u0449\u0443\u044e \u0441\u043e\u043b\u044c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437 \u043a\u043e\u0434\u0430), \u043e\u043d \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0434\u0443\u0436\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0434 \u044d\u0442\u0443 \u0441\u043e\u043b\u044c \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u0432\u0441\u0435 \u0445\u0435\u0448\u0438.<\/li>\n<\/ul>\n<p>\u0415\u0449\u0451 \u0445\u0443\u0436\u0435\u00a0\u2014\u00a0\u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043b\u044c:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u041e\u0427\u0415\u041d\u042c \u041f\u041b\u041e\u0425\u041e (\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435)<\/span>\r\n$hash = hash<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'sha256'<\/span>, $password<span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0440\u0430\u0434\u0443\u0436\u043d\u044b\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c.<\/p>\n<hr \/>\n<h2>\u0412\u0430\u0436\u043d\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0421\u043e\u043b\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0439.<\/strong> \u0415\u0451 \u0445\u0440\u0430\u043d\u044f\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0430\u0437\u0435 \u0440\u044f\u0434\u043e\u043c \u0441 \u0445\u0435\u0448\u0435\u043c. \u0421\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u043b\u0438 \u043d\u0435 \u0434\u0430\u0451\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0449\u0438\u0442\u044b; \u0435\u0451 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u00a0\u2014\u00a0\u0432 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u0435.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0414\u043b\u0438\u043d\u0430 \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u043b\u0438.<\/strong> \u0421\u043e\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0442\u043e\u0439\u043a\u0438\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u0440\u043e\u0434\u0435 <code class=\"CodeInlined\">password_hash<\/code> \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041d\u0435 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u0441\u0445\u0435\u043c\u044b.<\/strong> \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: <code class=\"CodeInlined\">password_hash<\/code>\/<code class=\"CodeInlined\">password_verify<\/code> \u0432 PHP, <code class=\"CodeInlined\">bcrypt<\/code>\/<code class=\"CodeInlined\">argon2<\/code> \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. \u041e\u043d\u0438 \u0443\u0436\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u0441\u043e\u043b\u044c, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0440\u0438\u043c\u0435\u0440: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u00ab\u0431\u0435\u0437 \u0441\u043e\u043b\u0438\u00bb \u0438 \u00ab\u0441 \u0441\u043e\u043b\u044c\u044e\u00bb<\/h2>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0434\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c <code class=\"CodeInlined\">qwerty<\/code>.<\/p>\n<p><strong>\u0411\u0435\u0437 \u0441\u043e\u043b\u0438 (\u0445\u0435\u0448 SHA\u2011256):<\/strong><\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u00a01: <code class=\"CodeInlined\">hash('sha256', 'qwerty')<\/code> \u2192 <code class=\"CodeInlined\">d8578edf8458ce06fbc5bb76a58c51b3...<\/code><\/li>\n<li data-value=\"\" data-shift=\"0\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u00a02: <code class=\"CodeInlined\">hash('sha256', 'qwerty')<\/code> \u2192 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0445\u0435\u0448.<\/li>\n<\/ul>\n<p>\u041f\u043e \u0445\u0435\u0448\u0430\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u0430\u0440\u043e\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442. \u0412\u0437\u043b\u043e\u043c\u0430\u0432 \u043e\u0434\u0438\u043d, \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043e\u0431\u0430 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430.<\/p>\n<p><strong>\u0421 \u0441\u043e\u043b\u044c\u044e (\u0447\u0435\u0440\u0435\u0437 <code class=\"CodeInlined\">password_hash<\/code>):<\/strong><\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u00a01: \u0445\u0435\u0448 \u0431\u0443\u0434\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code class=\"CodeInlined\">$2y$10$a1b2c3d4e5f6g7h8i9j0k1...<\/code><\/li>\n<li data-value=\"\" data-shift=\"0\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u00a02: \u0445\u0435\u0448 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code class=\"CodeInlined\">$2y$10$z9y8x7w6v5u4t3s2r1q0p9...<\/code><\/li>\n<\/ul>\n<p>\u0414\u0430\u0436\u0435 \u043f\u0440\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u043f\u0430\u0440\u043e\u043b\u0435 \u0445\u0435\u0448\u0438 \u0440\u0430\u0437\u043d\u044b\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0438\u0445\u00a0\u2014\u00a0\u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043e\u043b\u0438. \u041f\u043e \u0445\u0435\u0448\u0430\u043c \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043f\u0430\u0440\u043e\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u043b\u0438.<\/p>\n<hr \/>\n<h2>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0432\u043e\u0434<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u0421\u043e\u043b\u044c \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u043e\u043b\u0438 \u0434\u0430\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u0445\u0435\u0448\u0438 \u0438 \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0434\u0443\u0436\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438.<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043d\u0435 \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u044e\u0442 \u0441\u043e\u043b\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u043d\u0435 \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u044e\u0442 \u0435\u0451 \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0432 \u043a\u043e\u0434\u0435. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0438\u043f\u0430 <code class=\"CodeInlined\">password_hash<\/code>.<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0412 \u0431\u0430\u0437\u0435 \u0445\u0440\u0430\u043d\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0435\u0448 (\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u00ab\u0437\u0430\u0448\u0438\u0442\u0430\u00bb \u0441\u043e\u043b\u044c) \u0438, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u00a0\u2014\u00a0\u0441\u0430\u043c\u0443 \u0441\u043e\u043b\u044c \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0445\u0435\u0448\u0430 (\u043d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 <code class=\"CodeInlined\">password_hash<\/code> \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430).<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u043b\u044c\u00a0\u2014\u00a0\u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u043a \u043f\u0430\u0440\u043e\u043b\u044e \u043f\u0435\u0440\u0435\u0434 \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c. \u0415\u0451 \u0445\u0440\u0430\u043d\u044f\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u044f\u0434\u043e\u043c \u0441 \u0445\u0435\u0448\u0435\u043c. \u0421\u043e\u043b\u044c \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0435\u0451 \u0437\u0430\u0434\u0430\u0447\u0430\u00a0\u2014\u00a0\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0445\u0435\u0448 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442. \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u0435\u0437 \u0441\u043e\u043b\u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0425\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0430: \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0432\u0445\u043e\u0434 \u043e\u043d\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0430\u0451\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0432\u044b\u0445\u043e\u0434. \u0415\u0441\u043b\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0434\u0432\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a01: \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 [&hellip;]<\/p>\n","protected":false},"author":9194254,"featured_media":135335,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[],"class_list":["post-135340","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":9,"_links":{"self":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/9194254"}],"replies":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135340"}],"version-history":[{"count":1,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135340\/revisions"}],"predecessor-version":[{"id":135341,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135340\/revisions\/135341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/135335"}],"wp:attachment":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}