Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →JWT, session management, password hashing.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -57% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -60% | 0% |
php<?php // Hash $hash = password_hash($password, PASSWORD_DEFAULT); // Verify if (password_verify($inputPassword, $user->password)) { // Correct }
php<?php use Firebase\JWT\JWT; class AuthService { public function generateToken(User $user): string { $payload = [ 'iss' => 'myapp', 'sub' => $user->id, 'iat' => time(), 'exp' => time() + 3600 ]; return JWT::encode($payload, env('JWT_SECRET'), 'HS256'); } public function validateToken(string $token): ?object { try { return JWT::decode($token, new Key(env('JWT_SECRET'), 'HS256')); } catch (\Exception $e) { return null; } } }
Other measured skills in the registry, with their headline benchmark lift.