Skip to content
pubscout

package_signature

1.1.3, released 7 weeks ago by laihz.tech

Retrieve Android package signature (SHA1/SHA256) in a Flutter app.

$ flutter pub add package_signature
Source repository

What it does

This plugin exposes a simple API to obtain the Android package signature. It returns the signature as SHA1 and SHA256 hashes in base64, hex, and byte array formats. It works on Android devices running API level 9 and above.

AI-written summary of version 1.1.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to verify the app’s signature for security checks or API key validation.
  • You want to log or display the app’s SHA1/SHA256 for debugging or integration with services that require it.

Skip it when

  • You are targeting iOS or other platforms where Android signatures are irrelevant.
  • You need a cross-platform signature solution that also works on Android, iOS, and web.

Strengths

  • Simple, single-method API.
  • Supports both SHA1 and SHA256 in multiple formats.
  • Handles Android <9 crashes with a fix.
  • No build_runner or code generation required.

Weaknesses

  • Only works on Android; no iOS or web support.
  • No additional features beyond signature retrieval.
  • Requires the app to be built for Android to function.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2
```dart
Signature? signature = await PackageSignature().signature;
String sha256Base64 = signature.sha256base64;
```

Alternatives

Packages that do the same job and could replace package_signature.

Works with

Packages commonly used together with package_signature: ones it builds on, ones built on it, and its own family.