private function hash($token)
    {
        $app = Application::getDefault();
        $salt = $app['config']->get('app.salt');

        return hash_hmac('sha512', $token, $salt);
    }
private function hash($token)
    {
        $app = Application::getDefault();
        $salt = $app['config']->get('app.salt');

        return hash_hmac('sha512', $token, $salt);
    }
private function hash ( $ token ) { $ app = Application :: getDefault ( ) ; $ salt = $ app [ 'config' ] -> get ( 'app.salt' ) ; return hash_hmac ( 'sha512' , $ token , $ salt ) ; }
Hashes a token.

@param string $token

@return string hashed token
Hashes a token .