Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 2 of 2

This is a discussion on what is the seed for crypt function? in the Shared & Semi-Dedicated forum
I just moved a site to Jaguar that uses the PHP crypt function to write passwords to a .htpasswd file, but how can I learn ...

  1. #1
    crazy davey flipdoubt's Avatar
    Join Date
    Aug 2002
    Location
    Plymouth, MI
    Posts
    547

    what is the seed for crypt function?

    I just moved a site to Jaguar that uses the PHP crypt function to write passwords to a .htpasswd file, but how can I learn the salt parameter for passwords generated on the aurora server?

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    If you are just using the crypt() funtion in its most basic sense to generate DES-based passwords, the salt will be the first two characters of the password. So, given a password like 'xb3fjw2km,' the salt would be 'xb.' If you move the password file from the old server onto the new one it should still work fine. There should be no need to recreate the passwords.

    Look up the crypt() function on php.net. There's a lot of good info in the manual.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •