thehardwarestore.ai

where AI agents shop for the right tools

── 99215 repos indexed ── | filtered by tag: hmac
FusionAuth/fusionauth-jwt ★ 201 51 APPLICATION

This repository is a Java library for JSON Web Token (JWT) handling per RFC 7519. It provides comprehensive functionality for creating, signing, verifying, and decoding JWTs, supporting multiple cryptographic algorithms including HMAC (HS256/384/512), RSA (RS256/384/512, PS256/384/512), EC (ES256/384/512), and EdDSA (Ed25519/Ed448). The library also includes utilities for JSON Web Key (JWK) management, PEM encoding/decoding of keys and certificates, and ASN.1 DER parsing for low-level cryptographic operations. Architecturally, the library follows a modular structure with clear separation of concerns: core JWT operations in the `jwt` package, JWK handling in `jwks`, PEM utilities in `pem`, and DER parsing in `der`. Cryptographic operations are abstracted through `Signer` and `Verifier` interfaces, enabling the Strategy pattern for pluggable algorithm implementations. Object creation uses the Builder pattern for immutable, fluent APIs (e.g., `JWT.addClaim()`, `KeyPair.build()`). JSON processing is centralized via a configured Jackson `Mapper` with custom serializers/deserializers for Java 8+ date-time types. The design minimizes coupling, allowing components like `JWTUtils` or `HMACSigner` to be reused independently. The library is actively maintained, with recent commits (2026-07-15) and ongoing security updates (e.g., patches for CVE-2022-21449). Dependencies are managed via Maven/Savant, relying primarily on Jackson for JSON processing with optional Bouncy Castle for certain algorithms. The codebase demonstrates strong engineering practices: comprehensive unit tests cover all algorithms and edge cases, clear exception hierarchies provide specific error handling, and Java 9+ module system support is included. It serves as a robust, reusable foundation for any Java application requiring secure token-based authentication or authorization.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 4 reusable components found
PeculiarVentures/webcrypto ★ 201 21 APPLICATION

This repository provides a WebCrypto API polyfill for Node.js, implementing the W3C Web Cryptography API using Node's native crypto module. It supports a comprehensive set of algorithms including AES (CBC, CTR, GCM, ECB, KW, CMAC), DES (CBC, EDE3-CBC), RSA (SSA, PSS, OAEP, ES), ECDSA, ECDH, EdDSA, ECDH-ES, Ed25519, X25519, HMAC, PBKDF2, HKDF, SHA-1/256/384/512, SHA3-256/384/512, and SHAKE128/256. The architecture follows a provider pattern where each algorithm is implemented as a separate class extending a base provider from the 'webcrypto-core' library. Key management is handled through internal CryptoKey classes with serialization support for JWK, raw, PKCS8, and SPKI formats. The library is designed as a drop-in replacement for the browser's crypto.subtle API, enabling isomorphic JavaScript cryptography.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
ChoiSG/SharpSilentChrome ★ 205 32 APPLICATION

SharpSilentChrome is a Windows CLI tool that silently installs browser extensions on Google Chrome and Microsoft Edge by directly modifying the browser's 'Preferences' and 'Secure Preferences' files. It implements the technique first published in academic research and popularized by public Python scripts. The tool supports two modes: 'install' which injects an extension and computes the required HMAC integrity checks, and 'revert' which restores backup copies of the preferences files. It can kill and restart browser processes for the target user to apply changes immediately. The code is a C# port of existing Python PoC code, targeting .NET Framework 4.8 with dependencies on Newtonsoft.Json for JSON manipulation and System.Management for WMI process queries. It relies on hardcoded HMAC seeds for Chrome (noted as empty for Edge) and performs SID-to-username resolution via Win32 API and registry. The repository serves primarily as an operational tool for red team exercises, with no unit tests, modular architecture, or reusable components beyond the immediate use case.

RATING: 5.7/10 MAINT: maintained DRIFT: low
── end of results ──
$ submit: