GitHub repositorymacif-dev/ssl_pinning_plugin

ssl_pinning_plugin

SSL Pinning Plugin Flutter

ssl_pinning_plugin project cover
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 : HttpMethod enum [HttpMethod.Get || HttpMethod.Head] (default : HttpMethod.Get) * required
  • headerHttp : Map<String, String>
  • sha : SHA enum [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.

Macif GitHub avatar
GitHub author

Macif ↗

LanguagesDartSwiftKotlinRubyHTMLObjective-C

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.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. 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 ↗