private function getToken($request) {
    $hash = hash('sha256', $request.$this->psl->getUid());

    return substr($hash, 0, 4).substr($hash, 16, 4).substr($hash, 32, 4).substr($hash, 48, 4);

  }
private function getToken($request) {
    $hash = hash('sha256', $request.$this->psl->getUid());

    return substr($hash, 0, 4).substr($hash, 16, 4).substr($hash, 32, 4).substr($hash, 48, 4);

  }
private function getToken ( $ request ) { $ hash = hash ( 'sha256' , $ request . $ this -> psl -> getUid ( ) ) ; return substr ( $ hash , 0 , 4 ) . substr ( $ hash , 16 , 4 ) . substr ( $ hash , 32 , 4 ) . substr ( $ hash , 48 , 4 ) ; }
Get a security token from a request.

@param string $request
Request to create token from.

@return string
Returns a security token.
Get a security token from a request .