Open Lionad-Morotar opened 4 years ago
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.
Error when
md5(aLongString)
Should I do this ?