[OpenWrt-Devel] SHA512/SHA256 hashes truncated/busybox weirdness

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Thu Jan 7 03:08:28 EST 2016


On Sun, 2016-01-03 at 11:17 -0800, Chris Marchesi wrote:
> Hey!
> 
> I tried to change the default passwd algorithm used by busybox to 
> sha512, but got some strange looking hashes back by passwd after 
> changing.
> They basically had the algorithm and the salt (maybe) squashed, like 
> below.
> $6abCDefGH:(rest of shadow entry here)

That is a uclibc bug. When it didn't support the algorithm it
incorrectly used the DES crypt instead. Most likely the openwrt uclibc
doesn't contain the fix.

https://bugs.busybox.net/show_bug.cgi?id=7808

regards,
Nikos
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list