{"action":"created","issue":{"url":"https://api.github.com/repos/besser82/libxcrypt/issues/64","repository_url":"https://api.github.com/repos/besser82/libxcrypt","labels_url":"https://api.github.com/repos/besser82/libxcrypt/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/besser82/libxcrypt/issues/64/comments","events_url":"https://api.github.com/repos/besser82/libxcrypt/issues/64/events","html_url":"https://github.com/besser82/libxcrypt/issues/64","id":380240789,"node_id":"MDU6SXNzdWUzODAyNDA3ODk=","number":64,"title":"Provide a commandline utility to create password hashes","user":{"login":"gvegidy","id":170228,"node_id":"MDQ6VXNlcjE3MDIyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/170228?v=4","gravatar_id":"","url":"https://api.github.com/users/gvegidy","html_url":"https://github.com/gvegidy","followers_url":"https://api.github.com/users/gvegidy/followers","following_url":"https://api.github.com/users/gvegidy/following{/other_user}","gists_url":"https://api.github.com/users/gvegidy/gists{/gist_id}","starred_url":"https://api.github.com/users/gvegidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvegidy/subscriptions","organizations_url":"https://api.github.com/users/gvegidy/orgs","repos_url":"https://api.github.com/users/gvegidy/repos","events_url":"https://api.github.com/users/gvegidy/events{/privacy}","received_events_url":"https://api.github.com/users/gvegidy/received_events","type":"User","site_admin":false},"labels":[{"id":210717781,"node_id":"MDU6TGFiZWwyMTA3MTc3ODE=","url":"https://api.github.com/repos/besser82/libxcrypt/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"besser82","id":1271348,"node_id":"MDQ6VXNlcjEyNzEzNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/1271348?v=4","gravatar_id":"","url":"https://api.github.com/users/besser82","html_url":"https://github.com/besser82","followers_url":"https://api.github.com/users/besser82/followers","following_url":"https://api.github.com/users/besser82/following{/other_user}","gists_url":"https://api.github.com/users/besser82/gists{/gist_id}","starred_url":"https://api.github.com/users/besser82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/besser82/subscriptions","organizations_url":"https://api.github.com/users/besser82/orgs","repos_url":"https://api.github.com/users/besser82/repos","events_url":"https://api.github.com/users/besser82/events{/privacy}","received_events_url":"https://api.github.com/users/besser82/received_events","type":"User","site_admin":false},"assignees":[{"login":"besser82","id":1271348,"node_id":"MDQ6VXNlcjEyNzEzNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/1271348?v=4","gravatar_id":"","url":"https://api.github.com/users/besser82","html_url":"https://github.com/besser82","followers_url":"https://api.github.com/users/besser82/followers","following_url":"https://api.github.com/users/besser82/following{/other_user}","gists_url":"https://api.github.com/users/besser82/gists{/gist_id}","starred_url":"https://api.github.com/users/besser82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/besser82/subscriptions","organizations_url":"https://api.github.com/users/besser82/orgs","repos_url":"https://api.github.com/users/besser82/repos","events_url":"https://api.github.com/users/besser82/events{/privacy}","received_events_url":"https://api.github.com/users/besser82/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-11-13T14:03:29Z","updated_at":"2018-11-13T17:26:35Z","closed_at":null,"author_association":"NONE","body":"Currently there is no commandline utility that I know of that\r\n- actually uses lib(x)crypt and does not reimplement the hashes itself (like htpasswd)\r\n- is commonly available on most linux distributions (there is for example \"mkpasswd\", hidden in the \"whois\" package on Debian and derivatives, but which is not packaged on Fedora)\r\n- offers easy access to all the new hash methods of libxcrypt like yescrypt\r\n\r\nSo when you search for tips how to create a password hash on the command line, you get either recommendations to use tools which are limited in the choice of hash functions they offer, or don't work on your distribution at all.\r\n\r\nI think the change from the glibc-embedded libcrypt to a separate libxcrypt is a good opportunity to provide such a tool and make it available on a broad selection of distributions. I think the best solution would be if you provide it directly with libxcrypt and suggest to maintainers to provide it in a package named \"libxcrypt-tools\" or similar.\r\n"},"comment":{"url":"https://api.github.com/repos/besser82/libxcrypt/issues/comments/438359574","html_url":"https://github.com/besser82/libxcrypt/issues/64#issuecomment-438359574","issue_url":"https://api.github.com/repos/besser82/libxcrypt/issues/64","id":438359574,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODM1OTU3NA==","user":{"login":"zackw","id":325899,"node_id":"MDQ6VXNlcjMyNTg5OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/325899?v=4","gravatar_id":"","url":"https://api.github.com/users/zackw","html_url":"https://github.com/zackw","followers_url":"https://api.github.com/users/zackw/followers","following_url":"https://api.github.com/users/zackw/following{/other_user}","gists_url":"https://api.github.com/users/zackw/gists{/gist_id}","starred_url":"https://api.github.com/users/zackw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackw/subscriptions","organizations_url":"https://api.github.com/users/zackw/orgs","repos_url":"https://api.github.com/users/zackw/repos","events_url":"https://api.github.com/users/zackw/events{/privacy}","received_events_url":"https://api.github.com/users/zackw/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T17:26:35Z","updated_at":"2018-11-13T17:26:35Z","author_association":"COLLABORATOR","body":"@rfc1036 On a box running Debian unstable,\r\n\r\n```\r\n$ /usr/bin/mkpasswd --method=help\r\nAvailable methods:\r\nsha512crypt     SHA-512\r\nsha256crypt     SHA-256\r\nmd5crypt        MD5\r\ndescrypt        standard 56 bit DES-based crypt(3)\r\n\r\n$ /usr/bin/mkpasswd --version\r\nmkpasswd 5.4.0\r\n\r\nCopyright (C) 2001-2018 Marco d'Itri\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n\r\n$ ldd /usr/bin/mkpasswd \r\n\tlinux-vdso.so.1 (0x00007ffd925c6000)\r\n\tlibcrypt.so.2 => /lib/x86_64-linux-gnu/libcrypt.so.2 (0x00007f68b1f57000)\r\n\tlibc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f68b1d9a000)\r\n\t/lib64/ld-linux-x86-64.so.2 (0x00007f68b1fb0000)\r\n```\r\n\r\nThat doesn't look like \"all hashes in libxcrypt\" to me.  (I can file this as a separate bug somewhere if you'd prefer to track it that way -- just lemme know wqhere.)"}}
{"actor":{"display_login":"zackw"}}