<div dir="ltr"><div>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:</div><div><span class="inbox-inbox-s1"><br></span></div><div><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><br></div><div><br></div>By the way, pass hasn't used pwgen since the release of 1.7 in February, 2017.<div><br></div><div>Thanks,<div><br><div class="gmail_quote"><div dir="ltr">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:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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://picturingjordan.com" rel="noreferrer" target="_blank">https://picturingjordan.com</a><br>
> > <a href="https://englishbulgaria.net" rel="noreferrer" target="_blank">https://englishbulgaria.net</a><br>
> > <a href="https://mjanja.ch" rel="noreferrer" 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://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
><br>
><br>
<br>
<br>
--<br>
Dipl.-Inf. Till Schäfer<br>
TU Dortmund University<br>
Chair 11 - Algorithm Engineering<br>
Otto-Hahn-Str. 14 / Room 237<br>
44227 Dortmund, Germany<br>
<br>
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" value="+492317557706" target="_blank">+49(231)755-7706</a><br>
fax: <a href="tel:+49%20231%207557740" value="+492317557740" target="_blank">+49(231)755-7740</a><br>
web: <a href="http://ls11-www.cs.uni-dortmund.de/staff/schaefer" rel="noreferrer" target="_blank">http://ls11-www.cs.uni-dortmund.de/staff/schaefer</a><br>
pgp: <a href="https://keyserver2.pgp.com/vkd/SubmitSearch.event?&&SearchCriteria=0xD84DED79" rel="noreferrer" 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://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
</blockquote></div></div></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><p dir="ltr">Alan Orth<br>
<a href="mailto:alan.orth@gmail.com">alan.orth@gmail.com</a><br>
<a href="https://picturingjordan.com">https://picturingjordan.com</a><br>
<a href="https://englishbulgaria.net">https://englishbulgaria.net</a><br>
<a href="https://mjanja.ch">https://mjanja.ch</a></p>
</div>