Model
HashGenerator
Magento\Csp\Model\SubresourceIntegrity\HashGenerator
What it does
This class generates Subresource Integrity (SRI) hashes for content, which are used to verify that resources loaded from external sources haven't been tampered with.
Developers use this when implementing CSP policies to create cryptographic hashes of scripts and stylesheets, ensuring browser security by validating resource integrity before execution.
Public Methods
- generate()