Tagged articles
HMAC
24 articles · Page 1 of 1
This comprehensive guide answers 12 critical API security questions covering HMAC signatures, timestamp and nonce replay prevention, constant-time comparison against timing attacks, Redis SETNX atomic operations, appId/appSecret management, and key rotation strategies for robust API protection.
API SecurityHMACIdempotency
0 likes · 25 min read

This article provides a comprehensive implementation guide for securing APIs using HMAC-SHA256 signatures, timestamp and nonce anti-replay mechanisms, appId/appSecret credential management, constant-time comparison to prevent timing attacks, and business idempotency patterns with Spring Boot 3.2.4 and Redisson.
API SecurityAnti-ReplayHMAC
0 likes · 24 min read

This article explains why token authentication alone is insufficient for open APIs and details a three-layer defense using HMAC-SHA256 signatures, timestamps, and nonces to prevent tampering, long-term replay, and short-term replay attacks, with Java implementation examples.
API SecurityHMACRedis
0 likes · 25 min read

This article details a secure video streaming architecture using short-lived HMAC-signed URLs and Nginx's X-Accel-Redirect to offload file transfer from the application, enabling efficient Range request handling and progress bar seeking while explaining mp4 moov atom placement requirements and common pitfalls.
HMACMP4 FaststartRange Requests
0 likes · 15 min read

This article presents ten interview‑style questions and detailed answers covering HTTPS handshake, certificate pinning, request signing, replay‑attack defenses, HMAC‑SHA256 vs RSA‑SHA256, AES‑CBC vs AES‑GCM, the limits of front‑end encryption, mTLS operation in micro‑services, key‑rotation design, and why HTTPS alone is insufficient, illustrating a comprehensive, layered security approach.
AES-GCMCertificate PinningHMAC
0 likes · 21 min read

This article walks through building a production‑grade webhook system with Spring Boot 3.5, covering webhook fundamentals, a decoupled event‑driven architecture, database schema, entity and repository definitions, a dispatcher service with HMAC signing, exponential‑backoff retry, asynchronous execution, and dead‑letter handling.
HMACJavaRetry
0 likes · 15 min read

This article details the architecture, security mechanisms, and implementation of a unified Arthas online diagnosis platform that enables SSH‑free, audited access to Java applications across dozens of isolated Kubernetes clusters, covering control‑plane design, WebSocket tunneling, credential management, RBAC, and front‑end integration with Vue and xterm.js.
ArthasGoHMAC
0 likes · 23 min read

This article explains why encrypting sensitive fields like passwords, phone numbers, and ID numbers is essential, details a balanced approach using AES‑GCM encryption, HMAC indexes, and masked fields, and shares real‑world lessons from implementing the solution in a production system.
AES-GCMDatabase DesignHMAC
0 likes · 21 min read

This article explains the technical mechanism behind WeChat's offline payment, detailing how a time‑based one‑time dynamic code is generated on the device, verified by the server, and destroyed to protect user accounts even without network connectivity.
HMACQR CodeWeChat
0 likes · 6 min read

This technical guide walks developers through six HTTP API authentication techniques—None, Basic, Bearer Token, API Key, HMAC signature, and Open‑Platform hybrid—providing Java code samples, sequence diagrams, usage scenarios, and security best practices for each method.
API keyAuthenticationBearer Token
0 likes · 16 min read

To protect sensitive data in third‑party API integrations, this guide outlines a three‑layer security architecture—mutual TLS for channel protection, HMAC‑based request signing for integrity, and RSA encryption for data confidentiality—plus key management, monitoring, performance considerations, and implementation roadmaps.
API SecurityHMACRSA
0 likes · 10 min read

This article explains the cryptographic foundations of URL signing, details a step‑by‑step construction and HMAC‑SHA256 generation process, showcases Java implementations for signing and verification, discusses key‑management options, security hardening techniques, production best practices, and compares the approach with AWS Signature V4 and Tencent COS.
Cloud storage securityHMACJava
0 likes · 11 min read

This article explains the principles of Message Authentication Codes (MAC), details the operation and characteristics of HMAC and CMAC, compares common algorithms, and provides Python code examples for generating and verifying these codes to ensure data integrity and authenticity.
CMACHMACMac
0 likes · 6 min read

This article demonstrates how to implement common password‑encryption techniques in Python—including plain MD5, MD5 with salts, SHA1, SHA256, and HMAC—by wrapping them in a reusable class and showing sample code and output for each method.
HMACSHA1SHA256
0 likes · 8 min read

This article explains how Python's hashlib and hmac modules can be applied in API automation to compute hashes, generate salted password hashes, create HMACs, verify data integrity, encrypt sensitive information, and produce secure tokens, providing ten practical code examples.
API automationHMACPython
0 likes · 6 min read

This article traces the evolution from simple web page browsing to modern token‑based authentication, explaining the scalability and security problems of server‑side sessions and showing how signed, stateless tokens using HMAC‑SHA256 eliminate those issues while supporting horizontal scaling and cross‑platform access.
HMACSession ManagementStateless
0 likes · 13 min read

This article provides a detailed overview of authentication mechanisms, covering UI login methods such as Basic, LDAP, OAuth, Kerberos, and SSO, API call verification techniques like HMAC and JWT, and practical design guidelines for implementing SSO with CAS in micro‑service architectures.
AuthenticationCASHMAC
0 likes · 18 min read

This article provides a comprehensive guide to authentication, covering basic username/password login, LDAP, OAuth 2.0, Kerberos, SSO with CAS, as well as API authentication methods like HMAC and JWT, and offers design recommendations for both UI and API security in micro‑service architectures.
CASHMACJWT
0 likes · 19 min read

This article introduces common encryption algorithms—including symmetric, asymmetric, and digital signature methods—and provides detailed Go code examples for MD5, HMAC, SHA1, AES (with various modes), and RSA, helping developers understand and implement secure cryptographic operations in Go.
AESHMACMD5
0 likes · 16 min read

This article explains PHP’s hash_hmac() function, detailing its signature, the required algorithm, data, key, and raw_output parameters, describing the returned hash format, and providing a complete example with code and the resulting hash output.
HMACPHPhash_hmac
0 likes · 2 min read

hash_hmac_file() is a PHP function that computes a keyed HMAC hash of a file using a specified algorithm and secret key, returning either a raw binary digest or a lowercase hexadecimal string, with detailed parameter explanations and a complete usage example.
File HashingHMACPHP
0 likes · 2 min read

This article traces the evolution from early stateless web browsing to modern token‑based authentication, explaining how session management challenges led to centralized stores, their drawbacks, and how signed tokens using HMAC‑SHA256 provide a scalable, secure, and truly stateless alternative.
AuthenticationHMACSession
0 likes · 15 min read

This article introduces various cryptographic primitives—including MD, SHA, MAC, and digital signature algorithms such as RSA, DSA, and ECDSA—explains their usage and security considerations, and provides complete .NET Core code examples using the BouncyCastle library for implementation.
.NET CoreBouncyCastleECDSA
0 likes · 24 min read

The article traces the history of web session handling, explains the scalability and security challenges of server‑side sessions, and introduces stateless token‑based authentication using signed HMAC‑SHA256 tokens as a modern solution for scalable, secure web applications.
HMACSessionStateless
0 likes · 14 min read
