Hey,
Just wanted to share that when upgrading from older FluffOS drivers you’ll be running old crypt() algorithms, so the upgrade will bring you into SHA512 country which will throw an error unless you handle it. Here’s a quick suggestion for doing that:
nomask int matches_password(string str)
{
if (password[0..2] == "$6$")
return crypt(str, password) == password;
else
{
if (oldcrypt(str, password) == password || crypt(str, password) == password)
{
write("(Upgrading your password hash to SHA512)\n");
password = crypt(str);
return 1;
}
}
return 0;
}