# For passwords longer than 72 characters, Auth0 is ignoring all characters after the 72nd

**URL:** <https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136>\
**Category:** Get Help\
**Tags:** password\
**Created:** [March 10, 2020, 4:14pm UTC](https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136 "2020-03-10T16:14:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenneth.myers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kenneth.myers/32/15111_2.png) [@kenneth.myers](https://community.auth0.com/u/kenneth.myers)\
**Post date:** [March 10, 2020, 4:14pm UTC](https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136/1 "2020-03-10T16:14:42Z")

</div>

After setting a password in Auth0 with a length greater than 72 characters, if you try to login using that password but omit or change the characters after the 72nd character, the password will still be accepted. Was able to reproduce this bug on multiple tenants.

This was something that came up during testing. I’m aware that a password with good entropy has no need to be longer than 25 characters but thought this was odd behavior. Any ideas why this happening?

Thanks

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 10, 2020, 4:21pm UTC](https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136/2 "2020-03-10T16:21:04Z")

</div>

Hi @kenneth.myers,  
welcome to the community.  
I’ll report this internally. Thanks for reporting.  
(No idea why, maybe some truncation is happening at some point, or some field length limitation.)

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 10, 2020, 4:40pm UTC](https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136/3 "2020-03-10T16:40:43Z")

</div>

[Bcrypts](https://en.wikipedia.org/wiki/Bcrypt), which is the hashing algorithm Auth0 uses, truncates after 72 chars (see Wiki page for details). So, it’s by design in a way, however, I agree that the UI should have a proper field limitation in place and the API response when setting passwords longer than 72 chars should reflect that accordingly. I’ve reported this internally.

---

<div class="post-metadata">

**Author:** ![kenneth.myers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kenneth.myers/32/15111_2.png) [@kenneth.myers](https://community.auth0.com/u/kenneth.myers)\
**Post date:** [March 10, 2020, 4:46pm UTC](https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136/4 "2020-03-10T16:46:12Z")

</div>

Great thanks! Appreciate the quick reply!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 25, 2020, 4:46pm UTC](https://community.auth0.com/t/for-passwords-longer-than-72-characters-auth0-is-ignoring-all-characters-after-the-72nd/39136/5 "2020-03-25T16:46:13Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
