Affine Cipher
Free online Affine Cipher encrypt/decrypt tool. Based on ax+b linear transformation, classical substitution cipher, pure JS implementation.
Uso
Características
- 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 的特例
Casos de uso
- a=5, b=8 加密 HELLO → RCLLA
- 密钥空间 12 × 26 = 312(比凯撒大 12 倍)
Agent API Usage
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 中实现