I have a file encrypted in SHA-1 and a SHA-1 code consisting of about 20 characters (as I understand it is the key).

How, having this key, you can decrypt this file? Maybe there is such a function in PHP?

  • Sorry if I put the wrong tags, because I do not know which category this question belongs to)). - nick
  • 3
    The SHA family is NOT a cipher, it is a hash. Hash has no inverse transform in the general case. If you have a SHA1 file and you need to restore the file using a hash, in general, nothing will work. - Vladimir Martyanov
  • Sorry: c. Poor file) - nick

1 answer 1

SHA is not decrypted in principle. To help brute force, but 20 characters is tin. :) It will take about 10k centuries. By that time, Bender will steal everything in the universe, including your encrypted code. :)

(c) Kaspersky