Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,368
    Thanks
    262
    Thanked 32 Times in 31 Posts

    crypt vrs sha256+salt

    I normally use sha256 + a defined salt value to hash my passwords but i ran accross the crypt option below.

    http://php.net/manual/en/function.crypt.php

    And i am curious if it is better to let the system assign the hash and salt or is it better to use what i have been using, is there more security with crypt?
    Last edited by durangod; 09-07-2013 at 03:03 AM.

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,215
    Thanks
    12
    Thanked 338 Times in 334 Posts
    better using crypt(). or if you’re on PHP 5.5+ you can use password_hash().
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • Users who have thanked Dormilich for this post:

    durangod (09-07-2013)

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,368
    Thanks
    262
    Thanked 32 Times in 31 Posts
    Thanks, not on 5.5 yet but thats why i am upgrading this script to mysqli library is for that purpose and figured i would go ahead and clean up and sort out any other things that need to be done while i was here.

    THanks again


  •  

    Posting Permissions

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