Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Error in md5 large file #26

Open
Lionad-Morotar opened this issue Jan 7, 2020 · 1 comment
Open

Error in md5 large file #26

Lionad-Morotar opened this issue Jan 7, 2020 · 1 comment

Comments

@Lionad-Morotar
Copy link

Error when md5(aLongString)

image

Should I do this ?

image

@blueimp
Copy link
Owner

blueimp commented 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 md5 invocation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants