搜尋套件、儲存庫與 APP 分類

passwordgrid 封面
套件詳情v0.0.1

passwordgrid

用於產生密碼網格的 Flutter 套件。此套件支援 iOS、Android、MacOS 和 Web。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
12
喜歡數
1
Pub 分數
150

安裝套件

flutter pub add passwordgrid

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

PasswordGrid 是一個 Flutter 套件,讓開發者能夠建立安全且可自訂的密碼格子,用於使用者驗證。它支援多個平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,非常適合需要基於格子的密碼輸入之跨平台應用。此套件提供直覺的介面,透過格子佈局輸入密碼,提升使用便利性同時維持安全性。它與 Flutter 的 widget 系統無縫整合,可輕鬆自訂以符合應用程式設計需求。

適用情境

  • 安全的登入介面
  • 雙因素驗證
  • 基於網格的密碼輸入
  • 跨平台應用開發
  • 使用者友善的驗證
  • 可自訂的密碼輸入UI

主要特色

  • 跨平台支援
  • 可自訂的網格佈局
  • 安全密碼輸入
  • 與 Flutter 的輕鬆整合
  • 響應式設計
  • 支援多個作業系統

適合對象

  • 行動與網頁應用程式
  • 驗證系統
  • 注重安全的應用程式
  • 尋求可重用 UI 元件的開發者
  • 需要基於網格輸入的應用程式
  • 多平台專案

使用建議

  • 需要謹慎處理敏感資料
  • 可能需要額外的驗證邏輯
  • 不適用於複雜的密碼策略
  • UI 自訂可能需要進階的 Flutter 知識
  • 僅限網格樣式密碼輸入
  • 依賴外部來源程式碼以取得更新

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

PasswordGrid

A Flutter Package to Generate Password Grid. You can use this widget directly in your application UI.

Stay Secure with 2FA Passcode Grid

A password grid, also called a "passcode grid," is a table with rows and columns containing unique letters or numbers where you select specific combinations to authenticate, essentially acting as a visual password by choosing specific coordinates on the grid to form your login credentials; to use it, you would typically be presented with a grid, then asked to enter the letters or numbers from specific grid positions (like "A3, B2, C1") to log in, usually requiring you to save or print the grid for future use as it's unique to your account.

Key points about using a password grid:

Access your grid:

While designing a authentication system, you can ask your users to enter the values in the Password grid as a 2FA passcode. The user will be prompted to access your grid, which you should generate and show them. The password grid can be generated at the time of user signin and they should save it for future use. so that the user can use the grid for 2FA authentication.

Select coordinates:

The system will ask the user to enter the letters or numbers from specific grid positions, usually indicated by a combination of a column letter and row number (e.g., "B2", A8, etc).

Enter the code:

The user will enter the values from the requested grid coordinates into the 2FA login field to authenticate.

Benefits of a password grid:

Enhanced security:

Since the user selects multiple characters from a grid, it's harder for someone to guess your password compared to a simple text-based password.

Shoulder surfing resistant:

Less susceptible to "shoulder surfing" attacks where someone observes your password entry because the grid doesn't reveal the exact password sequence.

Accessibility for some users:

Can be easier for people who struggle with remembering complex passwords.

Usage

In your application,

import 'package:passwordgrid/main.dart';

then pass grid configuration

GridConfig config = GridConfig(
  numbers: true,
  alphaUpper: true,
  alphaLower: true,
  symbols: false,
  gridSize: 8, // max size is 8 and min size is 5
);
// or Optionally pass GridConfig or use default values
GridConfig? config;

// and invoke this
PasswordGrid passwordGrid = PasswordGrid(config: config);

// sample code
  @override
  Widget build(BuildContext context) {
    // pass grid configuration
    GridConfig config = GridConfig(
      numbers: true,
      alphaUpper: true,
      alphaLower: true,
      symbols: false,
      gridSize: 8, // max size is 8 and min size is 5
    );
    // or Optionally pass GridConfig or use default values
    // GridConfig? config;

    PasswordGrid passwordGrid = PasswordGrid(config: config);
    return Scaffold(
      appBar: AppBar(
        title: Text('Password Grid Example'),
        backgroundColor: Colors.green,
        centerTitle: true,
        titleTextStyle: TextStyle(
          color: Colors.white,
          fontSize: 24,
        ),
      ),
      body: Center(
        child: passwordGrid,
      ),
    );
  }

An example application of how to use this password grid package is included in the example folder.

This will generate a password grid similar to

Grid Configuration

While generating grid, you can configure the grid generation parameters.

  GridConfig config = GridConfig(
    numbers: false,
    alphaUpper: true,
    alphaLower: true,
    symbols: false,
    gridSize: 6, // max size is 8 and min size is 5
  );

If everything is set to false as below, then it is invalid, so grid parameters will be set to default. i.e., all falsg will be set to true

  GridConfig config = GridConfig(
    numbers: false,
    alphaUpper: false,
    alphaLower: false,
    symbols: false,
    gridSize: 6,
  );

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。