Re: One-line password generator
On Sat 26 Aug 2017 at 20:07:34 +0100, Brian wrote:
> On Sat 26 Aug 2017 at 20:37:01 +0200, Nicolas George wrote:
>
> > Le nonidi 9 fructidor, an CCXXV, Brian a écrit :
> > > echo 'secretpassword' |
> >
> > echo 'secretpassword site-name'
> >
> > > sha256sum - | base64
> >
> > Very bad: since sha256sum outputs its result in hexadecimal, it only has
> > half the entropy it seems to have. The same thing with Perl's
> > Digest::b64digest would be much better.
>
> Thanks. That is the sort of analysis I was after, (Although I will have
> to work out why hexadecimal matters).
>
> May I impose and ask how Digest::b64digest would be used in a command
> line string of commands?
The libdigest-sha-perl package appears to be what I want. I've avoided
any serious contact with Perl for many, many years.
--
Brian.
Reply to: