public function generateHashObject($sPassword)
    {
        $sSalt = $this->salt();

        // --------------------------------------------------------------------------

        $oOut               = new \stdClass();
        $oOut->password     = sha1(sha1($sPassword) . $sSalt);
        $oOut->password_md5 = md5($oOut->password);
        $oOut->salt         = $sSalt;
        $oOut->engine       = 'NAILS_1';

        return $oOut;
    }
public function generateHashObject($sPassword)
    {
        $sSalt = $this->salt();

        // --------------------------------------------------------------------------

        $oOut               = new \stdClass();
        $oOut->password     = sha1(sha1($sPassword) . $sSalt);
        $oOut->password_md5 = md5($oOut->password);
        $oOut->salt         = $sSalt;
        $oOut->engine       = 'NAILS_1';

        return $oOut;
    }
public function generateHashObject ( $ sPassword ) { $ sSalt = $ this -> salt ( ) ; // -------------------------------------------------------------------------- $ oOut = new \ stdClass ( ) ; $ oOut -> password = sha1 ( sha1 ( $ sPassword ) . $ sSalt ) ; $ oOut -> password_md5 = md5 ( $ oOut -> password ) ; $ oOut -> salt = $ sSalt ; $ oOut -> engine = 'NAILS_1' ; return $ oOut ; }
Generates a password hash, no strength checks

@param  string $sPassword The password to generate the hash for

@return \stdClass
Generates a password hash no strength checks