A Hardware Security Module (HSM) is a dedicated, tamper-resistant device that securely generates, stores, and manages cryptographic keys. It performs encryption, decryption, and digital signing within protected hardware to prevent unauthorized access. HSMs are widely used in banking, authentication systems, and any environment requiring strong, hardware-based security.