A Hardware Security Module (HSM) is a dedicated hardware device used for generating, storing, and managing encryption keys securely.