Password Hashing Method

Everything you need for figuring out salting/hashing should be able to be found in `zp-core/lib-auth.php`. If you need the salt, look at the `Zenphoto_Authority` constructor. For the hashing itself, look at `Zenphoto_Authority::passwordHash()`.

Comments

  • Why don't you just have the script set the user up using the zenphoto authority object? Anything else is bound to end up causing you problems.
  • Best way to do that is to actually run the setup script. Not to throw a wet blanket on your project, but unless your are much better at it than the other people (simplescripts, etc.) who are doing this you are likely to run into difficulties.

    Also note that there are very good reasons that we state in our Forum Rules that we DO NOT support third party installs. Typically these have done nothing but cause problems down stream which we are not in a position to understand let alone fix.
  • Yes, I already fixed the issue and reverse engineered everything. Took a bit of rummaging through the code, even though it has made it slightly difficult I was able to amend my perl scripts with the correct hashing method. However I am curious as to why you use several sequential substr() to break up the resulting md5().
  • Well, since we do not use MD5 for password encrypton (except for already existing installations, I am not sure I can help you understand.)
Sign In or Register to comment.