sha-256 passwords

Levente leventelist at gmail.com
Fri May 25 09:03:48 UTC 2018


Dear list,


Is it possible to use sha-256 hashed passwords? I've tried

passwd -a sha-256

but it gave me this in /etc/shadow:


root:$5xmH4xz/VpOc:17675:0:99999:7:::


which doesn't look like a sha-256 password. It should look like
root:$5$blablabla or something, and must be much longer.

Generating a password on my desktop, and editing /etc/shadow by hand
give me no luck too. :-(

mkpasswd -S "12345678" -m sha-256 mysecretpass
$5$12345678$Qs52poZym0HWk7YG2F3wVarvm4TxVNyRV/Kqq4r1Xk5

This looks good, but the system doesn't let me in. :-o

I'm using OpenWRT v17.01.4 with busybox version

'BusyBox v1.25.1 () multi-call binary.'

Any help welcome.


Thank you,
Levente


More information about the busybox mailing list