davidferguson / pibakery

The blocks based, easy to use setup tool for Raspberry Pi
http://www.PiBakery.org
GNU General Public License v3.0
1.49k stars 147 forks source link

Update changepass.py to use sha512crypt #25

Closed plaintextcity closed 8 years ago

plaintextcity commented 8 years ago

Update changepass.py to match Raspbian password storage (as passwd from raspi-config does)

Add ./ to ALPHABET (see http://man7.org/linux/man-pages/man3/crypt.3.html) Increase salt to 16 characters Change salt to use option 6 | SHA-512 (since glibc 2.7)

Switching to use urandom rather than random also suggested.