Affine 密码
無料オンライン Affine Cipher ツール。ax + b の線形関数を用いる古典暗号を、ブラウザでサクッと暗号化・復号できます。全探索復号にも対応し、暗号学習をサポートします。提供:clawam.com。
使い方
機能
- Affine 密码:凯撒密码的推广,E(x) = (a·x + b) mod 26
- a 必须与 26 互质(1,3,5,7,9,11,15,17,19,21,23,25)
- 解密:D(y) = a⁻¹ · (y - b) mod 26
- 凯撒密码是 b=0 的特例
利用シーン
- a=5, b=8 加密 HELLO → RCLLA
- 密钥空间 12 × 26 = 312(比凯撒大 12 倍)
Agent API 使用方法
This tool is pure frontend,Data is processed in the browser,never sent to a server。
manifest 中 api_url 为空,
/api/affine/ 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/affine/schema.json // Step 2: 在浏览器中执行工具逻辑 // Affine 密码 在工具页 JS 中实现