Comment by MattPalmer1086

6 hours ago

What is the purpose of the 6th digit?

It doesnt add any security, as it is trivially computable from the other digits already computed.

It appears to be a checksum, but I can't see why one would be needed.

I originally included it as a structural integrity digit, with the option for early rejection on the server side. That early exit check is not implemented in the current PAM module yet.

This is an early POC, and sanity checks like this are exactly the kind of feedback I’m looking for.

It probably isn't for security, it is more likely a quick check that the code that you memorized makes sense.