public static bool IsValidPasswordChar(char c) { return IsPrintableChar(c) || (c == '\0'); // null character means password reset. }