3 ms·
The usual one I've seen is that it's hardcoded into a system in some way that, while changeable, nobody wants to touch for fear of collateral breakage, which is
by zdw 14y ago
The usual one I've seen is that it's hardcoded into a system in some way that, while changeable, nobody wants to touch for fear of collateral breakage, which is a variant on the "don't touch the ladder" argument given by the first response.
This is usually something like a fixed width database or file field that works with code written a long time ago...
Does it suck? Yes. In nearly all cases, Authentication, Authorization, and Access should be separated in ways where they don't interact/overlap other than at an absolute minimum.
- drivebyacct2 14y agoThe only way "fixed width database field" makes any sense is if they're storing in plaintext, which is stupid all on its own.
- cpeterso 14y agoWouldn't a password hash, possibly truncated, fit into a "fixed width database field"?
- drivebyacct2 14y agoWhy would you truncate it? My point was simply thus: if one is hashing a password... every password will be the same length (strlen(sha1("a")))==(strlen(sha1("somereallybigstring"))). Thus, the column would be the right size for the hash always and would be completely unrelated to the user's inputted password. Not sure I interpreted your message correctly, but either way, the DB field should be unrelated to the length or limit of length put on the user password. It should only be correlated to the length of the hash produced. (Truncating seems like it would narrow the space for collisions, those bits are there in the hash for a reason).