Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 288935

Secure Hash Algorithm is a family of cryptographic hash functions published by NIST. This includes SHA-1, and the SHA-2 and SHA-3 families of functions. SHA-1 is deprecated for all usages.

67 votes
Accepted

Crashing the sha1() function in PHP?

We need to find a SHA-1 hash, which has the following format: 1 1st Digit: 0 2nd Digit: e 3rd to 40th Digit: [0-9] You have several ways of finding inputs that generate such hashes. … Because $hash has been set to 0, we need to find a SHA-1 hash, which evaluates to 0. Because of the weak comparison, PHP will try to convert string inputs (such as the SHA-1 hash) to integers. …
Mama Raikou's user avatar