You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
Unfortunately, this library is not suitable to hash large input data - its original use case was to hash email addresses for use with the Gravatar service.
If you have a need to hash large input input data you might wanna use an alternative implementation instead, maybe one that makes use of streams.
I wouldn't catch the "string too long" error in the library itself, but either test the input before passing it in or wrap the md5 invocation.
Activity
blueimp commentedon Jan 26, 2020
Unfortunately, this library is not suitable to hash large input data - its original use case was to hash email addresses for use with the Gravatar service.
If you have a need to hash large input input data you might wanna use an alternative implementation instead, maybe one that makes use of streams.
I wouldn't catch the "string too long" error in the library itself, but either test the input before passing it in or wrap the
md5invocation.