Hello. There is a function

function generate_password($length=8) { $keychars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_:;"; $randkey=""; $max=strlen($keychars)-1; for($i=0;$i<=$length;$i++) $randkey.=$keychars{rand(0,$max)}; return $randkey; } 

Suppose we have generated a password, something like "vlMqooJ", or "vlMqooJ" (at the end of the space). Further one more function

 function htmlspecialchars_decode_php4($str, $quote_style = ENT_COMPAT) { return strtr($str, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style))); } 

and from the above password, you can get the encrypted password "c684f43dc0c37b8d0fd58f5270929a016ead9ade"

Please explain how to get the above encrypted password using the above password?

  • 2
    > further one more function It just escapes HTML special characters. > c684f43dc0c37b8d0fd58f5270929a016ead9ade Some twenty-byte hash. Do you suggest a hash function to guess? Such length, for example, SHA1 gives out. - Nofate
  • I will say this: it is likely that this is SHA1 from the password with salt. - Nofate

1 answer 1

Please explain how to get the above encrypted password using the above password?

Get the password and encrypt it the way you want!

Option one, no more.

you can take md5 ();

hash guess function

if you guess, then you can also great-great-great-great-grandchildren podnapryach.

  • one
    @frank, today at a hashcode organized a contest on guessing passwords and hash functions on hash) - Nofate
  • along the way yes! - Artem