http_security_pinning 1.0.0
http_security_pinning: ^1.0.0 copied to clipboard
An implementation of Dart's HttpClient with certificate pinning against SPKI hashes.
1.0.0 #
- Initial public release of the
http_security_pinningpackage.
Features
- SPKI Pinning: Provides an
HttpClientimplementation that enforces certificate pinning against SPKI hashes to prevent MITM attacks. - Easy Integration: Works seamlessly with popular packages like
httpanddio. - Configurable: Set custom
timeoutandretryCountfor the certificate fetching process. - Global Configuration: Optionally apply pinning to all
HttpClientinstances in your app usingHttpOverrides. - Robust Error Handling: Provides clear, catchable exceptions (
CertificateFetchException,NoValidPinsFoundException) for pinning failures. - Automatic Hash Logging: Logs the certificate chain's SPKI hashes to the console to simplify setup.
- Comprehensive Testing: Includes a full integration test suite.
- Full Documentation: Includes a detailed README, API documentation, and a complete example app.
- Platform Support: Supports Android (API 19+) and iOS (10.0+).