<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.inbox-inbox-s1
        {mso-style-name:inbox-inbox-s1;}
span.inbox-inbox-s2
        {mso-style-name:inbox-inbox-s2;}
span.inbox-inbox-s3
        {mso-style-name:inbox-inbox-s3;}
span.inbox-inbox-s4
        {mso-style-name:inbox-inbox-s4;}
span.inbox-inbox-s5
        {mso-style-name:inbox-inbox-s5;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">One might also use something like…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">   gpg --armor --gen-random 1 20<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">(depending on your install, the command might be gpg2).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Since pass uses gpg under the hood, this is likely to be installed already.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">But, beware this warning from the man page: "don't  use this command unless you know what you are doing; it may remove precious entropy from the system!"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">--Jason<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Password-Store <password-store-bounces@lists.zx2c4.com> on behalf of Alan Orth <alan.orth@gmail.com><br>
<b>Date: </b>Tuesday, November 14, 2017 at 8:54 AM<br>
<b>To: </b>Till Schäfer <till2.schaefer@tu-dortmund.de></span><span style="font-family:PMingLiU;color:black"><br>
</span><b><span style="font-family:Calibri;color:black">Cc: </span></b><span style="font-family:Calibri;color:black">"password-store@lists.zx2c4.com" <password-store@lists.zx2c4.com><br>
<b>Subject: </b>Re: Generate password and print to stdout?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Yeah, I've got a shell function that does something with /dev/urandom as well. I guess I was just trying to clean up my shell's config a bit but I'll just keep using that function. Here's mine:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="inbox-inbox-s1">< </span><span class="inbox-inbox-s2">/dev/</span><span class="inbox-inbox-s3">u</span><span class="inbox-inbox-s2">random tr -dc
</span><span class="inbox-inbox-s4">'A-Za-z0-9!"#$%&'</span><span class="inbox-inbox-s5">\'</span><span class="inbox-inbox-s4">'()*+,-./:;<=>?@[\]^_`{|}~'</span><span class="inbox-inbox-s2">
</span><span class="inbox-inbox-s1">|</span><span class="inbox-inbox-s2"> head -c 2</span><span class="inbox-inbox-s4">5</span><span class="inbox-inbox-s2"> ;
</span><span class="inbox-inbox-s1">echo</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">By the way, pass hasn't used pwgen since the release of 1.7 in February, 2017.
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Nov 14, 2017 at 3:00 PM Till Schäfer <<a href="mailto:till2.schaefer@tu-dortmund.de" target="_blank">till2.schaefer@tu-dortmund.de</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hi,<br>
there is a standard unix tool for this purpose: pwgen<br>
<br>
Regards,<br>
Till<br>
<br>
On Dienstag, 14. November 2017 13:51:26 CET b3yond wrote:<br>
> pass can't do this, as it can't use files as output which are outside<br>
> .password-store.<br>
><br>
> you can use this command instead for a 32 length alphanumeric passphrase:<br>
><br>
> cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1<br>
><br>
> I hope this helps :)<br>
><br>
> b3yond<br>
><br>
><br>
> On 14.11.2017 13:21, Alan Orth wrote:<br>
> > Hello,<br>
> ><br>
> > I'm wondering how to make pass print a generated password to stdout.<br>
> > Sometimes I need to generate a password that I don't want or need to<br>
> > store. It would be nice if I could just use pass generate for that.<br>
> > Currently it seems that the "pass-name" argument is mandatory.<br>
> ><br>
> > Thank you,<br>
> ><br>
> > Alan Orth<br>
> > <a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a> <mailto:<a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a>><br>
> > <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__picturingjordan.com&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=jfFJSFF7c6hadZvzAzchJQCRhIJliQexx0MdWBNFzJg&e=" target="_blank">
https://picturingjordan.com</a><br>
> > <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__englishbulgaria.net&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=naLerl_wuU8XXVNVzDVoQbvktpgRNEdK9TIqU6yDdXM&e=" target="_blank">
https://englishbulgaria.net</a><br>
> > <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mjanja.ch&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=nZTDY0j0WSmJY51y3nezU0I52gE3j29-iciRuUnP6Bk&e=" target="_blank">
https://mjanja.ch</a><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Password-Store mailing list<br>
> > <a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br>
> > <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.zx2c4.com_mailman_listinfo_password-2Dstore&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=_28Epr0xeBsJ3Uw1lxh1Ykxc7gQSR5NJpGiKg4yJHk0&e=" target="_blank">
https://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
><br>
><br>
<br>
<br>
--<br>
Dipl.-Inf. Till Schäfer<span style="font-family:PMingLiU"><br>
</span>TU Dortmund University<span style="font-family:PMingLiU"><br>
</span>Chair 11 - Algorithm Engineering<span style="font-family:PMingLiU"><br>
</span>Otto-Hahn-Str. 14 / Room 237<span style="font-family:PMingLiU"><br>
</span>44227 Dortmund, Germany<span style="font-family:PMingLiU"><br>
<br>
</span>e-mail: <a href="mailto:till.schaefer@cs.tu-dortmund.de" target="_blank">till.schaefer@cs.tu-dortmund.de</a><br>
phone: <a href="tel:+49%20231%207557706" target="_blank">+49(231)755-7706</a><br>
fax: <a href="tel:+49%20231%207557740" target="_blank">+49(231)755-7740</a><br>
web: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ls11-2Dwww.cs.uni-2Ddortmund.de_staff_schaefer&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=-Zgyqi5AQ6qrSuCjRRRrGVhbMu5Pi9z4eQOakhFBANc&e=" target="_blank">
http://ls11-www.cs.uni-dortmund.de/staff/schaefer</a><br>
pgp: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__keyserver2.pgp.com_vkd_SubmitSearch.event-3F-26-26SearchCriteria-3D0xD84DED79&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=dxniFphgupwtcy-eFnH7tPr6lobt1lKI8QgJwuVt2zI&e=" target="_blank">
https://keyserver2.pgp.com/vkd/SubmitSearch.event?&&SearchCriteria=0xD84DED79</a><br>
_______________________________________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.zx2c4.com_mailman_listinfo_password-2Dstore&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=_28Epr0xeBsJ3Uw1lxh1Ykxc7gQSR5NJpGiKg4yJHk0&e=" target="_blank">https://lists.zx2c4.com/mailman/listinfo/password-store</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<div>
<p>Alan Orth<br>
<a href="mailto:alan.orth@gmail.com">alan.orth@gmail.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__picturingjordan.com&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=jfFJSFF7c6hadZvzAzchJQCRhIJliQexx0MdWBNFzJg&e=">https://picturingjordan.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__englishbulgaria.net&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=naLerl_wuU8XXVNVzDVoQbvktpgRNEdK9TIqU6yDdXM&e=">https://englishbulgaria.net</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mjanja.ch&d=DwMFaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=Nq9MEQIGIz5_QtqsbYm6aRB_AaOOhCs4C_VhqZVvSdA&m=PkUeK-GOmLDsv6FXIB3j-16JNBQUQfZwyAhXiwA_5aY&s=nZTDY0j0WSmJY51y3nezU0I52gE3j29-iciRuUnP6Bk&e=">https://mjanja.ch</a><o:p></o:p></p>
</div>
</div>
</body>
</html>