{"id":158,"date":"2020-11-11T11:45:29","date_gmt":"2020-11-11T03:45:29","guid":{"rendered":"http:\/\/pareto.fun\/?p=158"},"modified":"2020-11-11T11:45:29","modified_gmt":"2020-11-11T03:45:29","slug":"%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%8a%a0%e5%af%86demo","status":"publish","type":"post","link":"http:\/\/pareto.fun\/?p=158","title":{"rendered":"\u5b57\u7b26\u4e32\u52a0\u5bc6demo"},"content":{"rendered":"\n<p>\u5b57\u7b26\u4e32\u52a0\u89e3\u5bc6\u65b9\u6cd5\uff0c\u5355\u4e2a\u5b57\u7b26\u8fdb\u884c\u5f02\u6216\u52a0\u89e3\u5bc6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include &lt;iostream&gt;<br>#include &lt;string&gt;<br>#include &lt;string.h&gt;<br>\/\/ \u8d1f\u8d23\u5b57\u7b26\u4e32\u89e3\u5bc6<br>template &lt;unsigned int N&gt; std::string decry_str(const char(&amp;str)[N]){<br>  char tmp[N] = {0};<br>  for(int i  =  0 ;i &lt; N-1;i++){<br> &nbsp;  tmp[i] = str[i] ^ 'K';<br>  }<br>  tmp[N-1] = '\\0';<br>  return std::string(tmp);<br>}<br>\u200b<br>#define ENCRYPT_STR(s) std::string(s)<br>\u200b<br>int main(void){<br>  std::string myname = decry_str(\"i'm pareto\\n\");<br>  std::cout &lt;&lt; myname &lt;&lt; std::endl;<br>  return 0;<br>}<\/pre>\n\n\n\n<p>\u7f16\u8bd1\u8fd0\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"491\" height=\"70\" src=\"http:\/\/pareto.fun\/wp-content\/uploads\/2020\/11\/image-20201111110142684.png\" alt=\"\" class=\"wp-image-160\" srcset=\"http:\/\/pareto.fun\/wp-content\/uploads\/2020\/11\/image-20201111110142684.png 491w, http:\/\/pareto.fun\/wp-content\/uploads\/2020\/11\/image-20201111110142684-300x43.png 300w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/figure>\n\n\n\n<p>\u518d\u7528&#8221;l&amp;k;*9.?$A \u6765\u66ff\u4ee3 i&#8217;m pareto<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">std::string myname = decry_str(\"\\\"l&amp;k;*9.?$A\");<\/pre>\n\n\n\n<p>\u91cd\u65b0\u7f16\u8bd1\u6267\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"546\" height=\"66\" src=\"http:\/\/pareto.fun\/wp-content\/uploads\/2020\/11\/image-20201111110302516.png\" alt=\"image-20201111110302516\" class=\"wp-image-161\" srcset=\"http:\/\/pareto.fun\/wp-content\/uploads\/2020\/11\/image-20201111110302516.png 546w, http:\/\/pareto.fun\/wp-content\/uploads\/2020\/11\/image-20201111110302516-300x36.png 300w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/figure>\n\n\n\n<p>\u5982\u4f55\u6295\u5165\u5230\u751f\u4ea7\u73af\u5883\u5462\uff0c\u4f7f\u7528python\u811a\u672c\u4f5c\u4e3a\u7c98\u5408\u5242\uff0c\u5b8c\u6210\u5bf9\u6e90\u5b57\u7b26\u4e32\u7684\u52a0\u5bc6\u8fc7\u7a0b\uff0c\u5e76\u4e14\u5c06\u5b8f\u51fd\u6570\u66ff\u4ee3\u4e3a\u5b57\u7b26\u4e32\u89e3\u5bc6\u51fd\u6570\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b57\u7b26\u4e32\u52a0\u89e3\u5bc6\u65b9\u6cd5\uff0c\u5355\u4e2a\u5b57\u7b26\u8fdb\u884c\u5f02\u6216\u52a0\u89e3\u5bc6\u3002 #include &lt;iostream&gt;#in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts\/158"}],"collection":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":3,"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":163,"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions\/163"}],"wp:attachment":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}