Eh.  That seems unlikely, assuming you're not writing your own routines.  At most you'd get an out of memory error.  I can calculate the SHA1 digest of a 1Bn character string without running into that problem.<p>So let's cap the length at 100k characters and call it a day.