Skip to content

Add the standard Beaufort cipher #34

Description

@oritwoen

Add standard Beaufort to the classical cipher registry, using a required repeating key and the existing Latin-letter, case, and punctuation conventions. Beaufort is self-inverse: with A=0, both operations apply (key - input) mod 26.

During a public puzzle verification, the supported cipher tools could verify Bifid but could not independently reproduce a Beaufort stage. This required a separate implementation and another installed library. This is a missing capability; the current unknown-cipher error is correct.

Minimal example on @agntn/ciphers 0.1.6:

{"tool":"cipher_info","arguments":{"cipher":"beaufort"}}

Current response: cipher_info failed: Unknown cipher: beaufort, with isError: true. The registered cipher list also omits Beaufort.

Expected behavior:

  • cipher_info describes standard Beaufort and its required key.
  • Encode and decode use the same reciprocal transformation. Independently check A with key B gives B, and B with key B gives A.
  • Add a published multi-letter vector, missing/invalid-key checks, and explicit case and punctuation tests.
  • Expose the implementation consistently through the library, CLI, MCP, Pi, OMP, and browser playground.

Version evidence: registry and README at commit 6c03a960af90ea7ab8a1480cc65c1e262c78f19a; the loaded MCP server also lists the same 18 ciphers. Integration files in the local checkout have unrelated pending edits, so this report relies on the unchanged registry and observed tool response. No puzzle plaintext, candidate keys, or private artifacts are needed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions