From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 proposal/next 2/3] build: replace host-mkpasswd with host-busybox
Date: Fri, 8 Jun 2018 19:13:03 +0200 [thread overview]
Message-ID: <20180608171303.GA2090@scaer> (raw)
In-Reply-To: <CAOJ2eMeFnmAdFiiCePrAAh0tQQnk7L42VLN5MUy7CHitop2prw@mail.gmail.com>
Stefan, Arnout, All,
On 2018-06-08 14:40 +0300, Stefan Becker spake thusly:
> On Fri, Jun 8, 2018 at 12:29 AM Arnout Vandecappelle <arnout@mind.be> wrote:
> > So, not whois, not busybox, not openssl... What about python, which we anyway
> > require to be installed on the host? I remember that someone has posted a
> > one-liner that would do the job :-P
Well, I'd still prefer we had a script, and especially I did not like
that it would read the random bytes from stdin, when python provides a
proper random abstraction:
import os
os.urandom(64) # 64 random bytes
This is even portable, using various backends on various OSes... Then
your previous proposal becomes acceptable. Now. ;-)
> Because a python one-liner is not enough. F.ex. from support/scripts/mkuser:
>
> # Encode a password
> encode_password() {
> local passwd="${1}"
>
> mkpasswd -m "${PASSWD_METHOD}" "${passwd}"
> }
Well, that one is an internal script of oours (I wrote it), so we can
very well change it to use another tool without problem.
> i.e. you need at least a python script with mkpasswd-compatible
> command line parameters.
Ideally, a mkpasswd-compatible tool would be nice, but as long as we use
it internally, we don't care much, in fact.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-06-08 17:13 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 9:05 [Buildroot] [PATCH] host-mkpasswd: fix crash on Fedora 28 build host Stefan Becker
2018-05-02 17:57 ` Yann E. MORIN
2018-05-02 18:23 ` Stefan Becker
2018-05-02 20:38 ` Arnout Vandecappelle
2018-05-02 21:04 ` Yann E. MORIN
2018-05-03 6:11 ` Stefan Becker
2018-05-02 21:06 ` Yann E. MORIN
2018-05-03 19:56 ` Thomas Petazzoni
2018-05-03 20:04 ` Yann E. MORIN
2018-05-06 16:19 ` Stefan Becker
2018-05-07 15:00 ` M ZV
2018-05-08 21:37 ` Arnout Vandecappelle
2018-05-09 20:22 ` Yann E. MORIN
2018-05-10 16:02 ` M ZV
2018-05-29 7:37 ` Peter Korsgaard
2018-05-30 15:31 ` Yann E. MORIN
2018-05-30 16:45 ` Arnout Vandecappelle
2018-06-01 12:58 ` [Buildroot] [PATCH proposal/next] replace host-mkpasswd Stefan Becker
2018-06-01 12:58 ` [Buildroot] [PATCH proposal/next 1/2] package/busybox: add host variant Stefan Becker
2018-06-01 13:03 ` Thomas Petazzoni
2018-06-01 12:59 ` [Buildroot] [PATCH proposal/next 2/2] package/mkpasswd: remove obsolete package Stefan Becker
2018-06-01 13:30 ` [Buildroot] [PATCHv2 propsal/next] replace host-mkpasswd Stefan Becker
2018-06-01 13:30 ` [Buildroot] [PATCHv2 proposal/next 1/3] package/busybox: add host variant Stefan Becker
2018-06-01 13:30 ` [Buildroot] [PATCHv2 proposal/next 2/3] build: replace host-mkpasswd with host-busybox Stefan Becker
2018-06-04 22:21 ` Arnout Vandecappelle
2018-06-05 11:22 ` Carlos Santos
2018-06-05 16:15 ` Yann E. MORIN
2018-06-05 16:35 ` Christopher McCrory
2018-06-05 16:50 ` Yann E. MORIN
2018-06-07 21:29 ` Arnout Vandecappelle
2018-06-08 11:40 ` Stefan Becker
2018-06-08 17:13 ` Yann E. MORIN [this message]
2018-06-05 16:08 ` Yann E. MORIN
2018-06-18 5:13 ` Peter Korsgaard
2018-06-18 6:53 ` Thomas Petazzoni
2018-06-01 13:30 ` [Buildroot] [PATCHv2 proposal/next 3/3] package/mkpasswd: remove obsolete package Stefan Becker
2018-05-29 6:43 ` [Buildroot] [PATCH] host-mkpasswd: fix crash on Fedora 28 build host Stefan Becker
2018-05-03 21:26 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180608171303.GA2090@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox