ssl_pinning_plugin
SSL Pinning Plugin Flutter
- Stars
- 48
- Forks
- 35
- Last push (UTC)
- Nov 19, 2023
- Project status
- Archived
Original README
English project snapshot. Visit GitHub for the latest content.
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.
For help on editing plugin code, view the documentation.
Check
Params
- serveurUrl :
String* required - httpMethod :
HttpMethodenum [HttpMethod.Get || HttpMethod.Head] (default : HttpMethod.Get) * required - headerHttp :
Map<String, String> - sha :
SHAenum [SHA.SHA1 || SHA.SHA256] * required - allowedSHAFingerprints :
List<String>v - timeout :
int* required
Usage :
await SslPinningPlugin.check(serverURL: url, httpMethod: HttpMethod.Get, headerHttp : new Map(), sha: SHA.SHA1, allowedSHAFingerprints: new List<String>, timeout : 50);
Return :
- On success, return String "CONNECTION_SECURE"
- On error, return String "CONNECTION_INSECURE"
If an exception, return the stacktrace on String value.
Categories
Dependencies used
Dependency list 1 items
- flutter
{"sdk":"flutter"}
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- macif-dev/ssl_pinning_plugin · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Directory maintained by Ducafecat ↗