{"id":9356,"date":"2018-05-29T09:12:11","date_gmt":"2018-05-29T00:12:11","guid":{"rendered":"http:\/\/apollo89.com\/wordpress\/?p=9356"},"modified":"2025-03-05T20:11:25","modified_gmt":"2025-03-05T11:11:25","slug":"node-js-%ec%97%90%ec%84%9c-%ec%95%94%eb%b3%b5%ed%98%b8%ed%99%94-%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/apollo89.com\/wordpress\/?p=9356","title":{"rendered":"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30"},"content":{"rendered":"<p style=\"text-align: center; color: blue;\">&#8220;\uc774 \ud3ec\uc2a4\ud305\uc740 \ucfe0\ud321 \ud30c\ud2b8\ub108\uc2a4 \ud65c\ub3d9\uc758 \uc77c\ud658\uc73c\ub85c, \uc774\uc5d0 \ub530\ub978 \uc77c\uc815\uc561\uc758 \uc218\uc218\ub8cc\ub97c \uc81c\uacf5\ubc1b\uc2b5\ub2c8\ub2e4.&#8221;<\/p>\n<p><center><br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/coupa.ng\/chlRDr\" width=\"120\" height=\"240\" frameborder=\"0\" scrolling=\"no\"><\/iframe> <iframe loading=\"lazy\" src=\"https:\/\/coupa.ng\/chlRDF\" width=\"120\" height=\"240\" frameborder=\"0\" scrolling=\"no\"><\/iframe> <iframe loading=\"lazy\" src=\"https:\/\/coupa.ng\/chlRDQ\" width=\"120\" height=\"240\" frameborder=\"0\" scrolling=\"no\"><\/iframe> <iframe loading=\"lazy\" src=\"https:\/\/coupa.ng\/chlRDZ\" width=\"120\" height=\"240\" frameborder=\"0\" scrolling=\"no\"><\/iframe> <iframe loading=\"lazy\" src=\"https:\/\/coupa.ng\/chlREf\" width=\"120\" height=\"240\" frameborder=\"0\" scrolling=\"no\"><\/iframe><\/center><\/p>\n<p>AES \ubc29\uc2dd(Key)<\/p>\n<pre class=\"lang:js decode:true \">var key = 'this is password key'; \r\nvar input = 'This_is_Password!';\r\n\r\nvar cipher = crypto.createCipher('aes192', key); \r\ncipher.update(input, 'utf8', 'base64');\r\nvar cipheredOutput = cipher.final('base64');\r\n\r\nvar decipher = crypto.createDecipher('aes192', key); \r\ndecipher.update(cipheredOutput, 'base64', 'utf8'); \r\nvar decipheredOutput = decipher.final('utf8');\r\n\r\nconsole.log('original string: ' + input);\r\nconsole.log('ciphered string: ' + cipheredOutput);\r\nconsole.log('deciphered string: ' + decipheredOutput);<\/pre>\n<p>http:\/\/oraclejavastudy.tistory.com\/entry\/Nodejs-%EA%B0%95%EC%A2%8C-%EC%9E%90%EB%A3%8C-crypto-%EB%AA%A8%EB%93%88<\/p>\n<p>RSA \ubc29\uc2dd(public.key, private.key)<\/p>\n<pre class=\"lang:js decode:true \">var crypto = require('crypto');\r\n\/\/openssl genrsa -out private.key 2048\r\n\/\/openssl rsa -in private.key -out public.key -pubout\r\nvar PUBKEY = fs.readFileSync(__dirname+'\/public.key');\r\nvar PRIVKEY = fs.readFileSync(__dirname+'\/private.key');\r\n\r\n\/\/ RSA PRIVATE ENCRYPT -&gt; PUBLIC DECRYPT \/\/\r\n myMSG = \"This_is_Password!\";\r\n\r\nfunction privENC_pubDEC(originMSG){\r\n\tencmsg = crypto.privateEncrypt(PRIVKEY, Buffer.from(originMSG, 'utf8') ).toString('base64');\r\n\tmsg = crypto.publicDecrypt(PUBKEY, Buffer.from(encmsg, 'base64'));\r\n\tconsole.log(\"Encrypted with private key : \"+encmsg);\r\n\tconsole.log(msg.toString());\r\n}\r\n \r\nfunction pubENC_privDEC(originMSG){\r\n\tencmsg = crypto.publicEncrypt(PUBKEY, Buffer.from(originMSG, 'utf8') ).toString('base64');\r\n\tmsg = crypto.privateDecrypt(PRIVKEY, Buffer.from(encmsg, 'base64'));\r\n\tconsole.log(\"\\nEncrypted with public key : \"+encmsg);\r\n\tconsole.log(msg.toString());\r\n}\r\n\r\nprivENC_pubDEC(myMSG);\r\npubENC_privDEC(myMSG);<\/pre>\n<p>http:\/\/indienote.tistory.com\/253<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;\uc774 \ud3ec\uc2a4\ud305\uc740 \ucfe0\ud321 \ud30c\ud2b8\ub108\uc2a4 \ud65c\ub3d9\uc758 \uc77c\ud658\uc73c\ub85c, \uc774\uc5d0 \ub530\ub978 \uc77c\uc815\uc561\uc758 \uc218\uc218\ub8cc\ub97c \uc81c\uacf5\ubc1b\uc2b5\ub2c8\ub2e4.&#8221; AES \ubc29\uc2dd(Key) var key = &#8216;this is password key&#8217;; var input = &#8216;This_is_Password!&#8217;; var cipher = crypto.createCipher(&#8216;aes192&#8217;, key); cipher.update(input, &#8216;utf8&#8217;, &#8216;base64&#8217;); var cipheredOutput = cipher.final(&#8216;base64&#8217;); var decipher = crypto.createDecipher(&#8216;aes192&#8217;, &hellip; <a href=\"https:\/\/apollo89.com\/wordpress\/?p=9356\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1511],"tags":[],"class_list":["post-9356","post","type-post","status-publish","format-standard","hentry","category-node-js"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30 - Apollo89.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/apollo89.com\/wordpress\/?p=9356\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30 - Apollo89.com\" \/>\n<meta property=\"og:description\" content=\"&#8220;\uc774 \ud3ec\uc2a4\ud305\uc740 \ucfe0\ud321 \ud30c\ud2b8\ub108\uc2a4 \ud65c\ub3d9\uc758 \uc77c\ud658\uc73c\ub85c, \uc774\uc5d0 \ub530\ub978 \uc77c\uc815\uc561\uc758 \uc218\uc218\ub8cc\ub97c \uc81c\uacf5\ubc1b\uc2b5\ub2c8\ub2e4.&#8221; AES \ubc29\uc2dd(Key) var key = &#039;this is password key&#039;; var input = &#039;This_is_Password!&#039;; var cipher = crypto.createCipher(&#039;aes192&#039;, key); cipher.update(input, &#039;utf8&#039;, &#039;base64&#039;); var cipheredOutput = cipher.final(&#039;base64&#039;); var decipher = crypto.createDecipher(&#039;aes192&#039;, &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/apollo89.com\/wordpress\/?p=9356\" \/>\n<meta property=\"og:site_name\" content=\"Apollo89.com\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-29T00:12:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-05T11:11:25+00:00\" \/>\n<meta name=\"author\" content=\"apollo89\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"apollo89\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356\"},\"author\":{\"name\":\"apollo89\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"headline\":\"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30\",\"datePublished\":\"2018-05-29T00:12:11+00:00\",\"dateModified\":\"2025-03-05T11:11:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356\"},\"wordCount\":33,\"commentCount\":0,\"articleSection\":[\"node.js\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356\",\"name\":\"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30 - Apollo89.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\"},\"datePublished\":\"2018-05-29T00:12:11+00:00\",\"dateModified\":\"2025-03-05T11:11:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=9356#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/apollo89.com\\\/wordpress\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/\",\"name\":\"Apollo89.com\",\"description\":\"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\",\"name\":\"apollo89\",\"description\":\"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30 - Apollo89.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/apollo89.com\/wordpress\/?p=9356","og_locale":"ko_KR","og_type":"article","og_title":"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30 - Apollo89.com","og_description":"&#8220;\uc774 \ud3ec\uc2a4\ud305\uc740 \ucfe0\ud321 \ud30c\ud2b8\ub108\uc2a4 \ud65c\ub3d9\uc758 \uc77c\ud658\uc73c\ub85c, \uc774\uc5d0 \ub530\ub978 \uc77c\uc815\uc561\uc758 \uc218\uc218\ub8cc\ub97c \uc81c\uacf5\ubc1b\uc2b5\ub2c8\ub2e4.&#8221; AES \ubc29\uc2dd(Key) var key = 'this is password key'; var input = 'This_is_Password!'; var cipher = crypto.createCipher('aes192', key); cipher.update(input, 'utf8', 'base64'); var cipheredOutput = cipher.final('base64'); var decipher = crypto.createDecipher('aes192', &hellip; Continue reading &rarr;","og_url":"https:\/\/apollo89.com\/wordpress\/?p=9356","og_site_name":"Apollo89.com","article_published_time":"2018-05-29T00:12:11+00:00","article_modified_time":"2025-03-05T11:11:25+00:00","author":"apollo89","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"apollo89","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/apollo89.com\/wordpress\/?p=9356#article","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=9356"},"author":{"name":"apollo89","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"headline":"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30","datePublished":"2018-05-29T00:12:11+00:00","dateModified":"2025-03-05T11:11:25+00:00","mainEntityOfPage":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=9356"},"wordCount":33,"commentCount":0,"articleSection":["node.js"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/apollo89.com\/wordpress\/?p=9356#respond"]}]},{"@type":"WebPage","@id":"https:\/\/apollo89.com\/wordpress\/?p=9356","url":"https:\/\/apollo89.com\/wordpress\/?p=9356","name":"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30 - Apollo89.com","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/#website"},"datePublished":"2018-05-29T00:12:11+00:00","dateModified":"2025-03-05T11:11:25+00:00","author":{"@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"breadcrumb":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=9356#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/apollo89.com\/wordpress\/?p=9356"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/apollo89.com\/wordpress\/?p=9356#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/apollo89.com\/wordpress"},{"@type":"ListItem","position":2,"name":"Node.js \uc5d0\uc11c \uc554\ubcf5\ud638\ud654 \ud558\uae30"}]},{"@type":"WebSite","@id":"https:\/\/apollo89.com\/wordpress\/#website","url":"https:\/\/apollo89.com\/wordpress\/","name":"Apollo89.com","description":"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/apollo89.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82","name":"apollo89","description":"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.","url":"https:\/\/apollo89.com\/wordpress\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9356"}],"version-history":[{"count":10,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9356\/revisions"}],"predecessor-version":[{"id":9566,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9356\/revisions\/9566"}],"wp:attachment":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}