https://github.com/macif-dev/ssl_pinning_plugin
SSL Pinning Plugin Flutter
https://github.com/macif-dev/ssl_pinning_plugin
flutter-plugin ssl-pinning ssl-pinning-plugin
Last synced: 8 months ago
JSON representation
SSL Pinning Plugin Flutter
- Host: GitHub
- URL: https://github.com/macif-dev/ssl_pinning_plugin
- Owner: macif-dev
- License: apache-2.0
- Archived: true
- Created: 2018-05-29T09:19:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-19T07:20:44.000Z (over 2 years ago)
- Last Synced: 2025-10-23T06:55:51.312Z (8 months ago)
- Topics: flutter-plugin, ssl-pinning, ssl-pinning-plugin
- Language: Dart
- Size: 4.02 MB
- Stars: 49
- Watchers: 6
- Forks: 34
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ssl_pinning_plugin
Plugin for check SSL Pinning on request HTTP.
Checks the equality between the known SHA-1 or SHA-256 fingerprint and the SHA-1 or SHA-256 of the target server.
## Getting Started
For help getting started with Flutter, view our online
[documentation](https://flutter.io/).
For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).
## Check
### Params
- serveurUrl : `String`* required
- httpMethod : `HttpMethod` enum [HttpMethod.Get || HttpMethod.Head] (default : HttpMethod.Get) * required
- headerHttp : `Map`
- sha : `SHA` enum [SHA.SHA1 || SHA.SHA256] * required
- allowedSHAFingerprints : `List` v
- timeout : `int` * required
### Usage :
`await SslPinningPlugin.check(serverURL: url, httpMethod: HttpMethod.Get, headerHttp : new Map(), sha: SHA.SHA1, allowedSHAFingerprints: new List, timeout : 50);`
### Return :
- On success, return String "CONNECTION_SECURE"
- On error, return String "CONNECTION_INSECURE"
If an exception, return the stacktrace on String value.