Permutation 密码

無料オンライン Permutation Cipher ツール。指定した置換鍵に従い文字の並びを入れ替える換字暗号を、即座に暗号化・復号できます。暗号理論の演習に最適です。提供:clawam.com。

使い方

機能

  • Permutation 密码:把文本按密钥长度分块,每块按排列重排
  • 密钥示例 "3 1 4 2" 表示 4 字符块,新位置是 [2,0,3,1](0-based)
  • 长度不是块大小倍数时末尾补 X
  • 属于换位密码族,与 Rail Fence 不同的是位置固定排列而非 Z 字形

利用シーン

  • 密钥 "3 1 4 2" 加密:HE → EX(原 [0,1,2,3] → [2,0,3,1] 即 [H,E,L,L] → [L,H,L,E])
  • 经典示例:密钥 31425(5 字符块)加密 "HELLOWORLD"

Agent API 使用方法

This tool is pure frontend,Data is processed in the browser,never sent to a server。 manifest 中 api_url 为空,/api/permutation/ endpoint does not exist(返回 404)。 Agent 请读取 schema.json 理解字段,Please execute the tool logic in the browser first。
// Step 1: 读取工具 Schema
GET https://clawam.com/tools/permutation/schema.json

// Step 2: 在浏览器中执行工具逻辑
// Permutation 密码 在工具页 JS 中实现