Password generation

Results 1 to 2 of 2
  1. #1
    invincible.js cruseX is offline
    MemberRank
    Feb 2010 Join Date
    238Posts

    Password generation

    Hello,

    Table:
    login || password character varying(100) || salt character varying(100)

    How looks like the password generation?
    crypt(sha1('PW')) doesn't work.

    And what must me in the salt character varying?

    Thanks


  2. #2
    invincible.js cruseX is offline
    MemberRank
    Feb 2010 Join Date
    238Posts

    Re: Password generation

    For example:

    $password = '123456';
    $password_salt = crypt($password);
    $password_sha1 = sha1($password_salt);

    $password_salt ----> salt character varying(100)
    $password_sha1 ----> password character varying(100)

    Don't work :/

    I need the right salt crypt - nobody a idea?


    EDIT 2.25pm:

    I found a other way... not the best but it works.



Advertisement