Salted SHA-256 PIN & pluggable biometric app lock for Flutter with brute-force cooldowns, background grace-period auto-lock, and Material 3 EN + বাংলা UI.
- Never Stores Plaintext PINs: Salted SHA-256 digest with constant-time verification (
PinHasher). - Brute-Force Protection: Configurable cooldown timer after repeated wrong attempts.
- Smart Auto-Lock on Background: Configurable
backgroundGracePeriod(e.g. 20s) viaAppLockGate. - Zero Plugin Lock-In: Pure-Dart core +
CallbackBiometricBackendfor 1-linelocal_authintegration +FakeBiometricBackendfor tests. - Ready-Made EN / বাংলা UI:
AppLockGate,PinSetupSheet, andAppLockSettingsTile.
dependencies:
smart_app_lock_kit:
git:
url: https://github.com/Keshab1997/smart_app_lock_kit.gitfinal appLock = await AppLockController.init();
// Wrap your app home:
AppLockGate(
controller: appLock,
strings: isBangla ? const AppLockStrings.bn() : const AppLockStrings.en(),
child: HomeScreen(),
);
// Drop into SettingsScreen:
AppLockSettingsTile(
controller: appLock,
strings: isBangla ? const AppLockStrings.bn() : const AppLockStrings.en(),
);MIT © Keshab Sarkar