A database with user passwords was leaked. The passwords were stored securely using hashing and salting. Specifically, each password was hashed using the SHA-256 algorithm in the following way:
sha256(user_password || SALT)
Here, SALT is a string that is appended to the user password before hashing. Unfortunately, the SALT was also leaked along with the hashed passwords.
Given the following information:
SALT = "hello-world"- Hashed password:
5d50d26357d00547ec330d1114904df00866e7153bbe10fdda00dbeda5f50a1d
Your task is to extract the 4-digit integer password that when hashed with the given salt, matches the provided hashed password.