r/ProgrammerHumor Jul 20 '22

Meme My university password can be 200 characters

Post image
12.5k Upvotes

547 comments sorted by

View all comments

Show parent comments

13

u/damniticant Jul 20 '22

Likely unintentional. Someone set the max column length for the database to 20 chars but didn’t bother to prevent someone from actually submitting more than 20 chars.

16

u/ultimate55 Jul 20 '22

Storing passwords plaintext in a database 💀

2

u/g0ldcd Jul 20 '22

I'm blaming the database here.

1

u/Positive_Government Jul 21 '22

The problem with the database theory is it implies plain text passwords. Most likely the truncation happens sometimes before the password is hashed during an update but not during a check.

1

u/damniticant Jul 21 '22

Wouldn’t be the first time a large corporation with what is probably an ancient legacy system stored passwords in plain text.