Coverage for kryptic_cypher/cypher/reverse.py: 100%
6 statements
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-20 18:52 +0000
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-20 18:52 +0000
1from .base import CypherResult, Cypher, ValidationResult
4class ReverseCypher(Cypher):
5 def encode(self, text: str | bytes) -> CypherResult:
6 return CypherResult.ok(text, text[::-1])
8 def decode(self, text: str | bytes) -> CypherResult:
9 return CypherResult.ok(text, text[::-1])