Jump to content

Archived

This topic is now archived and is closed to further replies.

sneskid

sha1 max input length

Recommended Posts

What is the max length of an ASCII string that sha1 should be given?
I'm assuming it's 20 characters.

Share this post


Link to post
Share on other sites
sha1 will return a string of 20 binary pairs - so 40 characters long.

but i believe you can pass a string of 'any' length to sha1 just as you can with md5.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.