I
I
Ibishka2020-09-26 22:00:26
Hashing
Ibishka, 2020-09-26 22:00:26

Maximum length for password?

When hashing, I use argon2i in mysql; password varchar has a maximum length of 255. What is the maximum length of the input for entering a password on the site 255 !? The length of the hash depends on the password??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2020-09-26
@Ibishka

the size of the hash does not depend on the size of the input data
; at least you feed 10 bytes, at least 10 terabytes - the hash size will be the same.

S
Sanes, 2020-09-26
@Sanes

What is the maximum length of the input to enter the password

Be guided by common sense. It is unlikely that anyone will use long passwords.
More than 30 probably does not make sense. Next, see how your hash transforms such passwords. Maybe 255 won't be enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question