Skip to content

Add Autoclave (Autokey) cipher codec#32

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-new-encoding-autoclave
Draft

Add Autoclave (Autokey) cipher codec#32
Copilot wants to merge 2 commits intomainfrom
copilot/add-new-encoding-autoclave

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Checklist

  • No unrelated changes
  • Codec is new (not already implemented)
  • Tests included (if cannot be automated with tests/test_generated)
  • Documentation (included in the right page in docs/pages/enc)

Description

The Autoclave (Autokey) cipher is a Vigenère variant where the keystream is initial_key + plaintext, ensuring the key is always at least as long as the message. Decoding is iterative: each decoded character extends the working keystream.

Implementation (src/codext/crypto/autoclave.py):

  • Accepts codec names matching autoclave-KEY or autokey-KEY (and *-cipher-* variants)
  • Preserves non-alphabetic characters; case of input is preserved in output
  • __examples__ includes a known test vector and round-trip cases; auto-generated tests via test_generated
import codext

codext.encode("ATTACKATDAWN", "autoclave-queenly")  # -> "QNXEPVYTWTWP"
codext.decode("QNXEPVYTWTWP", "autoclave-queenly")  # -> "ATTACKATDAWN"

codext.encode("Hello World", "autokey-secret")      # spaces/non-alpha passed through
Original prompt

This section details on the original issue you should resolve

<issue_title>Add new encoding: autoclave</issue_title>
<issue_description>### Description

Autoclave/Autokey encryption is a variant of key encryption, it has the particularity of modifying the key by concatenating the key and the message (key+message).

Reference

https://www.dcode.fr/autoclave-cipher</issue_description>

<agent_instructions>Please propose an implementation according to the guideline at docs/pages/howto.md.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI changed the title [WIP] Add new encoding for autoclave encryption Add Autoclave (Autokey) cipher codec Mar 23, 2026
Copilot AI requested a review from dhondta March 23, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new encoding: autoclave

2 participants