Kohana_Auth::find_salt PHP Method

find_salt() public method

Finds the salt from a password, based on the configured salt pattern.
public find_salt ( $password ) : string
return string
    public function find_salt($password)
    {
        $salt = '';
        foreach ($this->_config['salt_pattern'] as $i => $offset) {
            // Find salt characters, take a good long look...
            $salt .= substr($password, $offset + $i, 1);
        }
        return $salt;
    }