Repositório GitHubmacif-dev/ssl_pinning_plugin

ssl_pinning_plugin

Plugin de Pinning SSL Flutter

Capa do projeto ssl_pinning_plugin
Estrelas
48
Forks
35
Último push (UTC)
19 de nov. de 2023
Status do projeto
Arquivado

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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
Autor no GitHub

Macif ↗

LinguagensDartSwiftKotlinRubyHTMLObjective-C

Categorias

Dependências usadas

Lista de dependências 1 itens

  • flutter{"sdk":"flutter"}

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗