{"id":522,"date":"2024-11-08T10:19:17","date_gmt":"2024-11-08T10:19:17","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=522"},"modified":"2024-11-08T10:19:17","modified_gmt":"2024-11-08T10:19:17","slug":"mwnci-hashpw-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hashpw-function\/","title":{"rendered":"Mwnci hashpw() Function"},"content":{"rendered":"<div class=\"entry-content\">\n<h2>Syntax<\/h2>\n<p>hashpw<strong>()<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>hashgrp()<\/i> function a hash of the entire group file keyed on group name.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"pwd\")\r\nprintln(hashgrp())\r\n\r\n\r\n{\"games\": {\"Password\": \"x\", \"Gid\": 60, \"Home\": \"\/usr\/games\", \"Shell\": \"\/usr\/sbin\/nologin\", \"Gecos\": [\"games\"], \"Uid\": 5}, \"news\": {\"Gecos\": [\"news\"], \"Uid\": 9, \"Password\": \"x\", \"Gid\": 9, \"Home\": \"\/var\/spool\/news\", \"Shell\": \"\/usr\/sbin\/nologin\"}, \"www-data\": {\"Password\": \"x\", \"Gid\": 33, \"Home\": \"\/var\/www\", \"Shell\": \"\/usr\/sbin\/nologin\", \"Gecos\": [\"www-data\"], \"Uid\": 33}]\r\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Syntax hashpw() Description The hashgrp() function a hash of the entire group file keyed on group name. Example include(&#8220;pwd&#8221;) println(hashgrp()) {&#8220;games&#8221;: {&#8220;Password&#8221;: &#8220;x&#8221;, &#8220;Gid&#8221;: 60, &#8220;Home&#8221;: &#8220;\/usr\/games&#8221;, &#8220;Shell&#8221;: &#8220;\/usr\/sbin\/nologin&#8221;, &#8220;Gecos&#8221;: [&#8220;games&#8221;], &#8220;Uid&#8221;: 5}, &#8220;news&#8221;: {&#8220;Gecos&#8221;: [&#8220;news&#8221;], &#8220;Uid&#8221;: 9, &#8220;Password&#8221;: &#8220;x&#8221;, &#8220;Gid&#8221;: 9, &#8220;Home&#8221;: &#8220;\/var\/spool\/news&#8221;, &#8220;Shell&#8221;: &#8220;\/usr\/sbin\/nologin&#8221;}, &#8220;www-data&#8221;: {&#8220;Password&#8221;: &#8220;x&#8221;, &#8220;Gid&#8221;: 33, &#8220;Home&#8221;: &#8220;\/var\/www&#8221;, &#8220;Shell&#8221;: &#8220;\/usr\/sbin\/nologin&#8221;, &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hashpw-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci hashpw() Function&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-522","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=522"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/522\/revisions"}],"predecessor-version":[{"id":523,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/522\/revisions\/523"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}