— No reviews yet
0 installs
7 views
0.0% view→install
Install
$ agentstack add skill-lonsdale201-wp-agent-skills-br-crypto ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Br Crypto? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
better-route: Crypto helpers
Use this for small security primitives that should not be reimplemented in plugins: random tokens, base64url encoding, and constant-time comparisons.
API
use BetterRoute\Support\Crypto;
use BetterRoute\Support\CryptoEncoding;
$state = Crypto::token(32); // base64url by default
$nonce = Crypto::token(32, CryptoEncoding::Base64Url);
$hex = Crypto::tokenHex(32);
$encoded = Crypto::base64UrlEncode($raw);
$raw = Crypto::base64UrlDecode($encoded);
if (!Crypto::equals($expected, $provided)) {
throw new \BetterRoute\Http\ApiException('Invalid token.', 401, 'invalid_token');
}
Critical rules
- Use
Crypto::equals()for PKCE verifier comparisons, nonce, state, CSRF, HMAC, and token-bound string comparisons. - Do not use
!==for secrets or attacker-controlled token strings. Crypto::token()usesrandom_bytes()and defaults to base64url.Crypto::base64UrlDecode()is strict and throws on malformed input.CryptoEncodingvalues areHex,Base64, andBase64Url.
Cross-references
- Use
br-single-use-tokenwhen the token must be consumed once. - Use
br-hmac-signaturefor signed request verification. - Use
br-jwks-jwt-authfor JWT verification; do not hand-roll JWT crypto.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Lonsdale201
- Source: Lonsdale201/wp-agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.