Jump to content


Photo

sha1 max input length


  • Please log in to reply
1 reply to this topic

#1 sneskid

sneskid
  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 18 April 2006 - 08:48 AM

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

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 18 April 2006 - 10:47 AM

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.
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users