搜索插件、代码仓与 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")
            ],
          ),
        ),
      ),
    );
  }
}

所属分类

源码仓库

使用此插件的项目

暂无相关数据。