{"id":444632,"date":"2025-01-10T21:00:31","date_gmt":"2025-01-10T21:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=444632"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=444632","title":{"rendered":"<span>\u041a\u0430\u043a \u043c\u044b \u0432\u0437\u043b\u043e\u043c\u0430\u043b\u0438 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 DKIM \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 $8<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0445\u043e\u0434\u0435 \u043d\u0430\u0448\u0435\u0433\u043e\u00a0<a href=\"https:\/\/dmarcchecker.app\/articles\/spf-dkim-dmarc-adoption-2024\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0432\u0448\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0438 SPF, DKIM \u0438 DMARC \u043d\u0430 1 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432,<\/a> \u043c\u044b \u0441 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 1 700 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 DKIM-\u043a\u043b\u044e\u0447\u0435\u0439 \u0434\u043b\u0438\u043d\u043e\u0439 \u043c\u0435\u043d\u0435\u0435 1 024 \u0431\u0438\u0442 \u043a\u0430\u0436\u0434\u044b\u0439. \u042d\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u043a\u0430 \u043d\u0430\u0441 \u0443\u0434\u0438\u0432\u0438\u043b\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 RSA-\u043a\u043b\u044e\u0447\u0438 \u043a\u043e\u0440\u043e\u0447\u0435 1 024 \u0431\u0438\u0442 \u0440\u0430\u0441\u0446\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435, \u0438 \u0438\u0445 \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 DKIM \u0441 2018 \u0433\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0431\u044b\u043b \u0432\u0432\u0435\u0434\u0451\u043d \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc8301\" rel=\"noopener noreferrer nofollow\">RFC 8301<\/a>.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0437 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0430 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043b\u0438 \u043d\u0430\u043c \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u041c\u044b \u0441\u0442\u0440\u0435\u043c\u0438\u043b\u0438\u0441\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e RSA-\u043a\u043b\u044e\u0447\u0430, \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0432\u044b\u0434\u0430\u0432\u0430\u044f \u0441\u0435\u0431\u044f \u0437\u0430 \u0438\u0445 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0430\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e, \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u043b\u0438 DKIM-\u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c \u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u0440\u0443\u043f\u043d\u0435\u0439\u0448\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u2014 \u00a0\u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, Gmail, Outlook.com \u0438 Yahoo Mail \u2014 \u0432\u0434\u0440\u0443\u0433 \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441 \u043f\u043e\u0440\u043e\u0433\u0430 \u043e\u0442\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0434\u043e\u043c\u0435\u043d redfin.com, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0448\u043b\u0438 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443\u00a0<em>key1._domainkey.redfin.com<\/em>\u00a0(\u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u043d \u0443\u0436\u0435 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d):<\/p>\n<pre><code>$ dig +short TXT key1._domainkey.redfin.com \"k=rsa; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMx7VnoRmk\/wFPeFWxrVUde6AJQI51\/uPFL2CbiHGMnRSnLjPs72AgxAVHIe5QrNQ2riR5+7u47Sgh5R5va\/d0cCAwEAAQ==\"<\/code><\/pre>\n<h2>\u0414\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447<\/h2>\n<p>\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 \u043c\u0435\u0442\u043a\u0435 p \u0437\u0430\u043f\u0438\u0441\u0438 DKIM, \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/X.690#DER_encoding\" rel=\"noopener noreferrer nofollow\">ASN.1 DER format<\/a>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d \u043a\u0430\u043a Base64. \u0427\u0442\u043e\u0431\u044b \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c (<em>n<\/em>) \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 (<em>e<\/em>), \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u0430\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043d\u0430 Python:<\/p>\n<pre><code class=\"python\">$ python3 &gt;&gt;&gt; from Crypto.PublicKey import RSA &gt;&gt;&gt; RSA.import_key('-----BEGIN PUBLIC KEY-----\\n' + 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMx7VnoRmk\/wFPeFWxrVUde6AJQI51\/uPFL2CbiHGMnRSnLjPs72AgxAVHIe5QrNQ2riR5+7u47Sgh5R5va\/d0cCAwEAAQ==' + '\\n-----END PUBLIC KEY-----') RsaKey(n=10709580243955269690347257968368575486652256021267387585731784527165077094358215924099792804326677548390607229176966588251215467367272433485332943072098119, e=65537)<\/code><\/pre>\n<h2>\u0424\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f RSA<\/h2>\n<p>\u0418\u043c\u0435\u044f \u043c\u043e\u0434\u0443\u043b\u044c\u00a0<em>n<\/em>, \u0434\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u043b\u0430\u00a0<em>p<\/em>\u00a0\u0438\u00a0<em>q<\/em>, \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0432\u043d\u043e\u00a0<em>n<\/em>. \u042d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0438\u043c\u0435\u043d\u0443\u0435\u043c\u044b\u0439 \u00ab\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439\u00bb \u2014 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0440\u043e\u0439 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u0430\u044f. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043c\u043e\u0449\u043d\u044b\u0439 \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u00a0<a href=\"https:\/\/cado-nfs.gitlabpages.inria.fr\/\" rel=\"noopener noreferrer nofollow\">CADO-NFS<\/a>, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u0438. \u0412 \u043d\u0451\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u00ab\u0440\u0435\u0448\u0435\u0442\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f\u00bb (NFS). \u042d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0437 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c, \u0430 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u043d\u0430\u0448\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u043d\u0430 \u043c\u043d\u043e\u0433\u043e \u0441\u0443\u0442\u043e\u043a, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0430\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440. \u0412\u044b\u0431\u0440\u0430\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 8 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044f\u0434\u0440\u0430\u043c\u0438 \u0426\u041f (\u0441\u0435\u0440\u0438\u044f AMD EPYC 7003 series) \u0438 32 \u0413\u0411 \u041e\u0417\u0423 \u043e\u0442 Hetzner, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Ubuntu. \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0442\u0440\u0443\u0434\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c CADO-NFS:<\/p>\n<pre><code>git clone https:\/\/gitlab.inria.fr\/cado-nfs\/cado-nfs.git cd cado-nfs make<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0445\u0432\u0430\u0442\u0438\u0442 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0435\u0449\u0451 \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u0430\u0447\u043a\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 32 \u0413\u0411:<\/p>\n<pre><code>sudo fallocate -l 32G \/swapfile sudo chmod 600 \/swapfile sudo mkswap \/swapfile sudo swapon \/swapfile<\/code><\/pre>\n<p>\u041c\u044b \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u043a \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u044b\u0437\u0432\u0430\u0432 \u0441\u043a\u0440\u0438\u043f\u0442 cado-nfs.py\u00a0\u0438 \u0441\u043e\u043e\u0431\u0449\u0438\u0432 \u0435\u043c\u0443\u00a0<em>n<\/em>\u00a0\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0432\u043e\u0434\u0430:<\/p>\n<pre><code class=\"python\">.\/cado-nfs.py 10709580243955269690347257968368575486652256021267387585731784527165077094358215924099792804326677548390607229176966588251215467367272433485332943072098119<\/code><\/pre>\n<p>\u041d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 8 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044f\u0434\u0440\u0430\u043c\u0438 \u0426\u041f \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u044f\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 86 \u0447\u0430\u0441\u043e\u0432, \u0438 \u043c\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u043b\u0438\u00a0<em>n<\/em>\u00a0\u043d\u0430\u00a0<em>p<\/em>\u00a0\u0438\u00a0<em>q<\/em>:<\/p>\n<pre><code>Info:Complete Factorization \/ Discrete logarithm: Total cpu\/elapsed time for entire Complete Factorization 2.20529e+06\/309865 [3d 14:04:25] 97850895333751392558280999318309697780438485965134147739065017624372104720767 109447953515671602102748820944693252789237215829169932130613751100276125683257<\/code><\/pre>\n<p>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u0431\u044b \u0435\u0449\u0451 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0435\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u0441\u0442\u0435\u043c (\u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 CADO-NFS), \u043d\u043e \u043c\u044b \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0442\u043e\u0440\u043e\u043f\u0438\u043b\u0438\u0441\u044c \u0438 \u0432\u043f\u043e\u043b\u043d\u0435 \u0431\u044b\u043b\u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c.<\/p>\n<h2>\u0421\u0431\u043e\u0440\u043a\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e RSA-\u043a\u043b\u044e\u0447\u0430<\/h2>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432\u00a0<em>p<\/em>\u00a0\u0438\u00a0<em>q<\/em>, \u043c\u044b \u0438\u043c\u0435\u043b\u0438 \u0432 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c Python \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 PyCryptodome:<\/p>\n<pre><code class=\"python\">$ python3 &gt;&gt;&gt; from Crypto.PublicKey import RSA &gt;&gt;&gt; from Crypto.Util.number import inverse &gt;&gt;&gt; p = 97850895333751392558280999318309697780438485965134147739065017624372104720767 &gt;&gt;&gt; q = 109447953515671602102748820944693252789237215829169932130613751100276125683257 &gt;&gt;&gt; e = 65537 &gt;&gt;&gt; n = p * q &gt;&gt;&gt; phi = (p-1) * (q-1) &gt;&gt;&gt; d = inverse(e, phi) &gt;&gt;&gt; key = RSA.construct((n, e, d, p, q)) &gt;&gt;&gt; private_key = key.export_key() &gt;&gt;&gt; print(private_key.decode())<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043d\u0430 Python \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PEM, \u043e\u043d \u0433\u043e\u0442\u043e\u0432 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e:<\/p>\n<pre><code class=\"python\">-----BEGIN RSA PRIVATE KEY----- MIIBOgIBAAJBAMx7VnoRmk\/wFPeFWxrVUde6AJQI51\/uPFL2CbiHGMnRSnLjPs72 AgxAVHIe5QrNQ2riR5+7u47Sgh5R5va\/d0cCAwEAAQJAPliEv2dKk4DyA54nbwEH mSzfLEOiuD8dKXZW9GpMhou72DYYcc5YD0PeQW0uGGsusnTZXRU3Kd3cmVfeR+np 4QIhANhVpOQ440Gqlda3nqCOAag12jq8ET+qr1G7VL8x9PF\/AiEA8flYr5rUO6Io \/5HRoHq6p7dA75PRK+7v79o0\/ijfTjkCIEdWPpCPfckKomxykllpWnyIfZT+rUVs WHHAL1r480erAiAz3xD87ALtGbESQE8gyM50n5sjAJwJf\/odf7h2d4qPOQIhAKwr Nv6s5cQiwbYgm1KND83nrkxe6uFQlu9ilkdwAIY4 -----END RSA PRIVATE KEY-----<\/code><\/pre>\n<p><strong>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 DKIM, \u0441 \u0434\u043e\u043c\u0435\u043d\u0430 @redfin.com<\/strong><\/p>\n<p>\u0412\u0441\u0442\u0440\u043e\u0438\u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447 \u0432 \u043d\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e OpenDKIM, \u043c\u044b \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043a \u044d\u0442\u0430\u043f\u0443 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0421\u043e\u043e\u0440\u0443\u0434\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043b\u0438 security@redfin.com, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043e\u0441\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u043f\u0438\u0441\u044c\u043c\u043e \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0438. \u0425\u043e\u0442\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0432\u0435\u0440\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043b\u0438 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043a\u0430\u043a \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u0438\u043b\u0438 \u043d\u0430\u0448\u0443 DKIM=\u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u0442\u0440\u0438 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u2014 Yahoo Mail, Mailfence \u0438 Tuta \u2014 \u0432\u044b\u0434\u0430\u043b\u0438 \u043d\u0430\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00a0dkim=pass.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c:<\/p>\n<ul>\n<li>\n<p>Gmail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Outlook:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Yahoo      Mail:\u00a0<strong>\u041f\u0420\u041e\u0419\u0414\u0415\u041d\u041e<\/strong><\/p>\n<\/li>\n<li>\n<p>Zoho:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Fastmail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Proton      Mail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Mailfence:\u00a0<strong>\u041f\u0420\u041e\u0419\u0414\u0415\u041d\u041e<\/strong><\/p>\n<\/li>\n<li>\n<p>Tuta:\u00a0<strong>\u041f\u0420\u041e\u0419\u0414\u0415\u041d\u041e<\/strong><\/p>\n<\/li>\n<li>\n<p>GMX:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>OnMail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0443 redfin.com \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f DMARC-\u0437\u0430\u043f\u0438\u0441\u044c <code>(v=DMARC1;p=reject;pct=100;rua=mailto:a+99923342@fdmarc.net;ruf=mailto:f+99923342@fdmarc.net;ri=3600;fo=1;)<\/code>, \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 DKIM-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430\u0448\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c \u0441\u00a0redfin.com\u00a0\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0438 DMARC-\u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043e\u043d\u043e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c <a href=\"https:\/\/bimigroup.org\/\" rel=\"noopener noreferrer nofollow\">BIMI<\/a>.<\/p>\n<h2>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h2>\n<p>\u0422\u0440\u0438\u0434\u0446\u0430\u0442\u044c \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0443\u043f\u0435\u0440\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u0435\u043c\u0430 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c $8. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043c\u0430 \u0435\u0441\u0442\u044c \u043c\u043e\u0449\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0441 16 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u044f\u0434\u0440\u0430\u043c\u0438, \u0442\u043e \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0435\u0448\u0438\u0442\u044c \u0435\u0449\u0451 \u0441\u043a\u043e\u0440\u0435\u0435 \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u043d\u0435\u0435.<\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0435\u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 512 \u0438\u043b\u0438 768 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432. \u0421\u0435\u0440\u0432\u0438\u0441\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u0443\u044e DKIM-\u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e RSA-\u043a\u043b\u044e\u0447\u043e\u043c \u043a\u043e\u0440\u043e\u0447\u0435 1 024 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432. \u041c\u044b \u0434\u043e\u0432\u0435\u043b\u0438 \u0434\u043e \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f Yahoo, Mailfence \u0438 Tuta \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0441 \u044d\u0442\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u043c\u0438 \u043d\u0430\u0448\u0438\u043c\u0438 \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0412\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043c\u0435\u0440\u044b, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044f \u0441\u0432\u043e\u0438 DNS-\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 DKIM-\u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 \u00ab\u043c\u0438\u043d\u0438\u043c\u0443\u043c 1024 \u0440\u0430\u0437\u0440\u044f\u0434\u0430\u00bb. \u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0432 \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 DKIM \u043c\u0435\u0442\u043a\u0443\u00a0p\u00a0\u0438 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0432 \u0435\u0451 \u0441\u0438\u043c\u0432\u043e\u043b\u044b Base64: \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c 1024-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u043c RSA-\u043a\u043b\u044e\u0447\u0435 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 216 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/872622\/\"> https:\/\/habr.com\/ru\/articles\/872622\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0445\u043e\u0434\u0435 \u043d\u0430\u0448\u0435\u0433\u043e\u00a0<a href=\"https:\/\/dmarcchecker.app\/articles\/spf-dkim-dmarc-adoption-2024\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0432\u0448\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0438 SPF, DKIM \u0438 DMARC \u043d\u0430 1 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432,<\/a> \u043c\u044b \u0441 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 1 700 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 DKIM-\u043a\u043b\u044e\u0447\u0435\u0439 \u0434\u043b\u0438\u043d\u043e\u0439 \u043c\u0435\u043d\u0435\u0435 1 024 \u0431\u0438\u0442 \u043a\u0430\u0436\u0434\u044b\u0439. \u042d\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u043a\u0430 \u043d\u0430\u0441 \u0443\u0434\u0438\u0432\u0438\u043b\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 RSA-\u043a\u043b\u044e\u0447\u0438 \u043a\u043e\u0440\u043e\u0447\u0435 1 024 \u0431\u0438\u0442 \u0440\u0430\u0441\u0446\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435, \u0438 \u0438\u0445 \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 DKIM \u0441 2018 \u0433\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0431\u044b\u043b \u0432\u0432\u0435\u0434\u0451\u043d \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc8301\" rel=\"noopener noreferrer nofollow\">RFC 8301<\/a>.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0437 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0430 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043b\u0438 \u043d\u0430\u043c \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u041c\u044b \u0441\u0442\u0440\u0435\u043c\u0438\u043b\u0438\u0441\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e RSA-\u043a\u043b\u044e\u0447\u0430, \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0432\u044b\u0434\u0430\u0432\u0430\u044f \u0441\u0435\u0431\u044f \u0437\u0430 \u0438\u0445 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0430\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e, \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u043b\u0438 DKIM-\u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c \u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u0440\u0443\u043f\u043d\u0435\u0439\u0448\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u2014 \u00a0\u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, Gmail, Outlook.com \u0438 Yahoo Mail \u2014 \u0432\u0434\u0440\u0443\u0433 \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441 \u043f\u043e\u0440\u043e\u0433\u0430 \u043e\u0442\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0434\u043e\u043c\u0435\u043d redfin.com, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0448\u043b\u0438 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443\u00a0<em>key1._domainkey.redfin.com<\/em>\u00a0(\u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u043d \u0443\u0436\u0435 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d):<\/p>\n<pre><code>$ dig +short TXT key1._domainkey.redfin.com \"k=rsa; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMx7VnoRmk\/wFPeFWxrVUde6AJQI51\/uPFL2CbiHGMnRSnLjPs72AgxAVHIe5QrNQ2riR5+7u47Sgh5R5va\/d0cCAwEAAQ==\"<\/code><\/pre>\n<h2>\u0414\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447<\/h2>\n<p>\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 \u043c\u0435\u0442\u043a\u0435 p \u0437\u0430\u043f\u0438\u0441\u0438 DKIM, \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/X.690#DER_encoding\" rel=\"noopener noreferrer nofollow\">ASN.1 DER format<\/a>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d \u043a\u0430\u043a Base64. \u0427\u0442\u043e\u0431\u044b \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c (<em>n<\/em>) \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 (<em>e<\/em>), \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u0430\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043d\u0430 Python:<\/p>\n<pre><code class=\"python\">$ python3 &gt;&gt;&gt; from Crypto.PublicKey import RSA &gt;&gt;&gt; RSA.import_key('-----BEGIN PUBLIC KEY-----\\n' + 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMx7VnoRmk\/wFPeFWxrVUde6AJQI51\/uPFL2CbiHGMnRSnLjPs72AgxAVHIe5QrNQ2riR5+7u47Sgh5R5va\/d0cCAwEAAQ==' + '\\n-----END PUBLIC KEY-----') RsaKey(n=10709580243955269690347257968368575486652256021267387585731784527165077094358215924099792804326677548390607229176966588251215467367272433485332943072098119, e=65537)<\/code><\/pre>\n<h2>\u0424\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f RSA<\/h2>\n<p>\u0418\u043c\u0435\u044f \u043c\u043e\u0434\u0443\u043b\u044c\u00a0<em>n<\/em>, \u0434\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u043b\u0430\u00a0<em>p<\/em>\u00a0\u0438\u00a0<em>q<\/em>, \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0432\u043d\u043e\u00a0<em>n<\/em>. \u042d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0438\u043c\u0435\u043d\u0443\u0435\u043c\u044b\u0439 \u00ab\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439\u00bb \u2014 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0440\u043e\u0439 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u0430\u044f. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043c\u043e\u0449\u043d\u044b\u0439 \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u00a0<a href=\"https:\/\/cado-nfs.gitlabpages.inria.fr\/\" rel=\"noopener noreferrer nofollow\">CADO-NFS<\/a>, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u0438. \u0412 \u043d\u0451\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u00ab\u0440\u0435\u0448\u0435\u0442\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f\u00bb (NFS). \u042d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0437 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c, \u0430 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u043d\u0430\u0448\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u043d\u0430 \u043c\u043d\u043e\u0433\u043e \u0441\u0443\u0442\u043e\u043a, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0430\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440. \u0412\u044b\u0431\u0440\u0430\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 8 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044f\u0434\u0440\u0430\u043c\u0438 \u0426\u041f (\u0441\u0435\u0440\u0438\u044f AMD EPYC 7003 series) \u0438 32 \u0413\u0411 \u041e\u0417\u0423 \u043e\u0442 Hetzner, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Ubuntu. \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0442\u0440\u0443\u0434\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c CADO-NFS:<\/p>\n<pre><code>git clone https:\/\/gitlab.inria.fr\/cado-nfs\/cado-nfs.git cd cado-nfs make<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0445\u0432\u0430\u0442\u0438\u0442 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0435\u0449\u0451 \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u0430\u0447\u043a\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 32 \u0413\u0411:<\/p>\n<pre><code>sudo fallocate -l 32G \/swapfile sudo chmod 600 \/swapfile sudo mkswap \/swapfile sudo swapon \/swapfile<\/code><\/pre>\n<p>\u041c\u044b \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u043a \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u044b\u0437\u0432\u0430\u0432 \u0441\u043a\u0440\u0438\u043f\u0442 cado-nfs.py\u00a0\u0438 \u0441\u043e\u043e\u0431\u0449\u0438\u0432 \u0435\u043c\u0443\u00a0<em>n<\/em>\u00a0\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0432\u043e\u0434\u0430:<\/p>\n<pre><code class=\"python\">.\/cado-nfs.py 10709580243955269690347257968368575486652256021267387585731784527165077094358215924099792804326677548390607229176966588251215467367272433485332943072098119<\/code><\/pre>\n<p>\u041d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 8 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044f\u0434\u0440\u0430\u043c\u0438 \u0426\u041f \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u044f\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 86 \u0447\u0430\u0441\u043e\u0432, \u0438 \u043c\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u043b\u0438\u00a0<em>n<\/em>\u00a0\u043d\u0430\u00a0<em>p<\/em>\u00a0\u0438\u00a0<em>q<\/em>:<\/p>\n<pre><code>Info:Complete Factorization \/ Discrete logarithm: Total cpu\/elapsed time for entire Complete Factorization 2.20529e+06\/309865 [3d 14:04:25] 97850895333751392558280999318309697780438485965134147739065017624372104720767 109447953515671602102748820944693252789237215829169932130613751100276125683257<\/code><\/pre>\n<p>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u0431\u044b \u0435\u0449\u0451 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0435\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u0441\u0442\u0435\u043c (\u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 CADO-NFS), \u043d\u043e \u043c\u044b \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0442\u043e\u0440\u043e\u043f\u0438\u043b\u0438\u0441\u044c \u0438 \u0432\u043f\u043e\u043b\u043d\u0435 \u0431\u044b\u043b\u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c.<\/p>\n<h2>\u0421\u0431\u043e\u0440\u043a\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e RSA-\u043a\u043b\u044e\u0447\u0430<\/h2>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432\u00a0<em>p<\/em>\u00a0\u0438\u00a0<em>q<\/em>, \u043c\u044b \u0438\u043c\u0435\u043b\u0438 \u0432 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c Python \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 PyCryptodome:<\/p>\n<pre><code class=\"python\">$ python3 &gt;&gt;&gt; from Crypto.PublicKey import RSA &gt;&gt;&gt; from Crypto.Util.number import inverse &gt;&gt;&gt; p = 97850895333751392558280999318309697780438485965134147739065017624372104720767 &gt;&gt;&gt; q = 109447953515671602102748820944693252789237215829169932130613751100276125683257 &gt;&gt;&gt; e = 65537 &gt;&gt;&gt; n = p * q &gt;&gt;&gt; phi = (p-1) * (q-1) &gt;&gt;&gt; d = inverse(e, phi) &gt;&gt;&gt; key = RSA.construct((n, e, d, p, q)) &gt;&gt;&gt; private_key = key.export_key() &gt;&gt;&gt; print(private_key.decode())<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043d\u0430 Python \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PEM, \u043e\u043d \u0433\u043e\u0442\u043e\u0432 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e:<\/p>\n<pre><code class=\"python\">-----BEGIN RSA PRIVATE KEY----- MIIBOgIBAAJBAMx7VnoRmk\/wFPeFWxrVUde6AJQI51\/uPFL2CbiHGMnRSnLjPs72 AgxAVHIe5QrNQ2riR5+7u47Sgh5R5va\/d0cCAwEAAQJAPliEv2dKk4DyA54nbwEH mSzfLEOiuD8dKXZW9GpMhou72DYYcc5YD0PeQW0uGGsusnTZXRU3Kd3cmVfeR+np 4QIhANhVpOQ440Gqlda3nqCOAag12jq8ET+qr1G7VL8x9PF\/AiEA8flYr5rUO6Io \/5HRoHq6p7dA75PRK+7v79o0\/ijfTjkCIEdWPpCPfckKomxykllpWnyIfZT+rUVs WHHAL1r480erAiAz3xD87ALtGbESQE8gyM50n5sjAJwJf\/odf7h2d4qPOQIhAKwr Nv6s5cQiwbYgm1KND83nrkxe6uFQlu9ilkdwAIY4 -----END RSA PRIVATE KEY-----<\/code><\/pre>\n<p><strong>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 DKIM, \u0441 \u0434\u043e\u043c\u0435\u043d\u0430 @redfin.com<\/strong><\/p>\n<p>\u0412\u0441\u0442\u0440\u043e\u0438\u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447 \u0432 \u043d\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e OpenDKIM, \u043c\u044b \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043a \u044d\u0442\u0430\u043f\u0443 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0421\u043e\u043e\u0440\u0443\u0434\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043b\u0438 security@redfin.com, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043e\u0441\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u043f\u0438\u0441\u044c\u043c\u043e \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0438. \u0425\u043e\u0442\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0432\u0435\u0440\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043b\u0438 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043a\u0430\u043a \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u0438\u043b\u0438 \u043d\u0430\u0448\u0443 DKIM=\u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u0442\u0440\u0438 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u2014 Yahoo Mail, Mailfence \u0438 Tuta \u2014 \u0432\u044b\u0434\u0430\u043b\u0438 \u043d\u0430\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00a0dkim=pass.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c:<\/p>\n<ul>\n<li>\n<p>Gmail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Outlook:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Yahoo      Mail:\u00a0<strong>\u041f\u0420\u041e\u0419\u0414\u0415\u041d\u041e<\/strong><\/p>\n<\/li>\n<li>\n<p>Zoho:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Fastmail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Proton      Mail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>Mailfence:\u00a0<strong>\u041f\u0420\u041e\u0419\u0414\u0415\u041d\u041e<\/strong><\/p>\n<\/li>\n<li>\n<p>Tuta:\u00a0<strong>\u041f\u0420\u041e\u0419\u0414\u0415\u041d\u041e<\/strong><\/p>\n<\/li>\n<li>\n<p>GMX:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<li>\n<p>OnMail:\u00a0\u041e\u0422\u041a\u0410\u0417<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0443 redfin.com \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f DMARC-\u0437\u0430\u043f\u0438\u0441\u044c <code>(v=DMARC1;p=reject;pct=100;rua=mailto:a+99923342@fdmarc.net;ruf=mailto:f+99923342@fdmarc.net;ri=3600;fo=1;)<\/code>, \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 DKIM-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430\u0448\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c \u0441\u00a0redfin.com\u00a0\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0438 DMARC-\u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043e\u043d\u043e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c <a href=\"https:\/\/bimigroup.org\/\" rel=\"noopener noreferrer nofollow\">BIMI<\/a>.<\/p>\n<h2>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h2>\n<p>\u0422\u0440\u0438\u0434\u0446\u0430\u0442\u044c \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c 512-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 RSA-\u043a\u043b\u044e\u0447 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0443\u043f\u0435\u0440\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u0435\u043c\u0430 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c $8. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043c\u0430 \u0435\u0441\u0442\u044c \u043c\u043e\u0449\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0441 16 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u044f\u0434\u0440\u0430\u043c\u0438, \u0442\u043e \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0435\u0448\u0438\u0442\u044c \u0435\u0449\u0451 \u0441\u043a\u043e\u0440\u0435\u0435 \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u043d\u0435\u0435.<\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0435\u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 512 \u0438\u043b\u0438 768 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432. \u0421\u0435\u0440\u0432\u0438\u0441\u044b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u0443\u044e DKIM-\u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e RSA-\u043a\u043b\u044e\u0447\u043e\u043c \u043a\u043e\u0440\u043e\u0447\u0435 1 024 \u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432. \u041c\u044b \u0434\u043e\u0432\u0435\u043b\u0438 \u0434\u043e \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f Yahoo, Mailfence \u0438 Tuta \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0441 \u044d\u0442\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u043c\u0438 \u043d\u0430\u0448\u0438\u043c\u0438 \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0412\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043c\u0435\u0440\u044b, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044f \u0441\u0432\u043e\u0438 DNS-\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 DKIM-\u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 \u00ab\u043c\u0438\u043d\u0438\u043c\u0443\u043c 1024 \u0440\u0430\u0437\u0440\u044f\u0434\u0430\u00bb. \u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0432 \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 DKIM \u043c\u0435\u0442\u043a\u0443\u00a0p\u00a0\u0438 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0432 \u0435\u0451 \u0441\u0438\u043c\u0432\u043e\u043b\u044b Base64: \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c 1024-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u043c RSA-\u043a\u043b\u044e\u0447\u0435 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 216 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/872622\/\"> https:\/\/habr.com\/ru\/articles\/872622\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-444632","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/444632","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=444632"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/444632\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=444632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=444632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=444632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}