Skip to main content

flutter_mfa_platform_interface 0.2.0 copy "flutter_mfa_platform_interface: ^0.2.0" to clipboard
flutter_mfa_platform_interface: ^0.2.0 copied to clipboard

A common platform interface for the flutter_mfa secure vault (Android Keystore, iOS Keychain, WebCrypto).

flutter_mfa_platform_interface #

pub package

The platform interface behind the flutter_mfa secure vault. App developers should depend on flutter_mfa. Implement this interface only to add a new vault backend.

Status: v0.2.0, the first public release. Until 1.0, a minor version may change the API; the CHANGELOG says what changed.

Built and maintained by BreaktroughF1 LLP in collaboration with ARDC, CHRIST (Deemed to be University). MIT licensed.

Security model and design: see the project docs.

Implementing a vault #

Extend MfaPlatform and register your instance with MfaPlatform.instance = …. The contract is in 03_API_SPEC.md §2. In short:

  • A byte vault, nothing more. Store and return opaque bytes per key; no OTP logic, JSON or validation (that lives in flutter_mfa_core).
  • Fail closed. Unknown platform state throws a typed VaultException. Never store at a weaker ProtectionLevel than requested: throw VaultHardwareUnavailable instead.
  • Buffers belong to the caller. read returns a new, modifiable buffer, which the caller overwrites after use.
  • No logging of keys, values or platform error messages, which may echo inputs.
  • package:flutter_mfa_platform_interface/testing.dart provides InMemoryMfaPlatform with failure injection for tests.
0
likes
160
points
42
downloads

Documentation

API reference

Publisher

verified publisherbreaktroughf1.com

Weekly Downloads

A common platform interface for the flutter_mfa secure vault (Android Keystore, iOS Keychain, WebCrypto).

Repository (GitHub)
View/report issues
Contributing

Topics

#mfa #totp #otp #authentication #security

License

MIT (license)

Dependencies

flutter, flutter_mfa_core, meta, plugin_platform_interface

More

Packages that depend on flutter_mfa_platform_interface