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

rot13 封面
套件詳情v1.0.3

rot13

Flutter 套件,用於將字串編碼/解碼為 ROT13(向後旋轉 13 個位置)

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
587
喜歡數
9
Pub 分數
140

安裝套件

flutter pub add rot13

套件介紹

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

一個輕量級的 Flutter 套件,用於使用 ROT13 加密對字串進行編碼和解碼,該加密將每個字母在字母表中旋轉 13 個位置。它簡單易用,非常適合基本混淆或教育用途。此套件支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。它不提供加密安全性,但作為學習密碼與文字轉換的有趣且易用的工具。

適用情境

  • 應用中的文字混淆
  • 密碼學教育工具
  • 簡單數據編碼
  • 有趣的聊天功能
  • 基本字串操作

主要特色

  • 易於使用的編碼/解碼方法
  • 跨平台相容性
  • 無外部依賴
  • 支援大寫和小寫字母
  • 純 Dart 實現

適合對象

  • 初學者Flutter開發者
  • 學習密碼學基礎
  • 非敏感資料編碼
  • 簡單應用功能
  • 教育項目

使用建議

  • 不適用於安全加密
  • 不特殊處理非字母字元
  • 僅限ROT13算法
  • 不適用於生產環境的安全使用
  • 無配置選項

原始 README

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

Flutter package to encode / decode string to ROT13

Getting Started

To use this plugin, add rot13 as a dependency in your pubspec.yaml file.

To Encode / Decode String to ROT13:

  • rot13(String string) - Encode / Decode a string to ROT13

Example

example

import 'package:flutter/material.dart';
import 'package:rot13/rot13.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String rot13Text = "";
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("ROT 13 Demo"),
        ),
        body: SafeArea(
          child: Column(
            children: [
              TextField(
                onChanged: (txt) {
                  setState(() {
                    rot13Text = rot13(txt);
                  });
                },
              ),
              SizedBox(height: 20),
              Text("Output: $rot13Text")
            ],
          ),
        ),
      ),
    );
  }
}

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。