Generate password and print to stdout?

Alan Orth alan.orth at gmail.com
Tue Nov 14 14:54:13 CET 2017


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:

< /dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head
-c 25 ; echo

By the way, pass hasn't used pwgen since the release of 1.7 in February,
2017.

Thanks,

On Tue, Nov 14, 2017 at 3:00 PM Till Schäfer <till2.schaefer at tu-dortmund.de>
wrote:

> Hi,
> there is a standard unix tool for this purpose: pwgen
>
> Regards,
> Till
>
> On Dienstag, 14. November 2017 13:51:26 CET b3yond wrote:
> > pass can't do this, as it can't use files as output which are outside
> > .password-store.
> >
> > you can use this command instead for a 32 length alphanumeric passphrase:
> >
> > cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
> >
> > I hope this helps :)
> >
> > b3yond
> >
> >
> > On 14.11.2017 13:21, Alan Orth wrote:
> > > Hello,
> > >
> > > I'm wondering how to make pass print a generated password to stdout.
> > > Sometimes I need to generate a password that I don't want or need to
> > > store. It would be nice if I could just use pass generate for that.
> > > Currently it seems that the "pass-name" argument is mandatory.
> > >
> > > Thank you,
> > >
> > > Alan Orth
> > > alan.orth at gmail.com <mailto:alan.orth at gmail.com>
> > > https://picturingjordan.com
> > > https://englishbulgaria.net
> > > https://mjanja.ch
> > >
> > >
> > >
> > > _______________________________________________
> > > Password-Store mailing list
> > > Password-Store at lists.zx2c4.com
> > > https://lists.zx2c4.com/mailman/listinfo/password-store
> >
> >
>
>
> --
> Dipl.-Inf. Till Schäfer
> TU Dortmund University
> Chair 11 - Algorithm Engineering
> Otto-Hahn-Str. 14 / Room 237
> 44227 Dortmund, Germany
>
> e-mail: till.schaefer at cs.tu-dortmund.de
> phone: +49(231)755-7706 <+49%20231%207557706>
> fax: +49(231)755-7740 <+49%20231%207557740>
> web: http://ls11-www.cs.uni-dortmund.de/staff/schaefer
> pgp:
> https://keyserver2.pgp.com/vkd/SubmitSearch.event?&&SearchCriteria=0xD84DED79
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
-- 

Alan Orth
alan.orth at gmail.com
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20171114/0b3e5be3/attachment-0001.html>


More information about the Password-Store mailing list