playground

Any cipher. Right here, in the page.

The page imports @agntn/ciphers and runs it in your browser. What you type never leaves the tab, and every state is a link you can paste to someone.

Classical ciphers are for puzzles and lessons. Nothing on this page protects a secret from anyone with a laptop.

Polyalphabetic substitution — repeating keyword shifts letters

samples

create("vigenere").encode

LXFOPV EF RNHR
cipher
vigenere · Polyalphabetic
operation
encode
options
{ key: "LEMON", preserveCase: true, stripNonAlpha: false }

$CLI

ciphers encode vigenere 'ATTACK AT DAWN' --key LEMON

toolcipher_encode

{
  "name": "cipher_encode",
  "arguments": {
    "cipher": "vigenere",
    "text": "ATTACK AT DAWN",
    "key": "LEMON"
  }
}

@agntn/ciphers·MIT license· Classical ciphers, for lessons and puzzles. Not for protecting anything, ever.