Ticket #7009 (new enhancement)

Opened 4 years ago

Formatted output options for ciphertext

Reported by: rbeezer Owned by: somebody
Priority: minor Milestone: sage-5.10
Component: cryptography Keywords: formatted ciphertext
Cc: mvngu Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

A formatting option for ciphertext might break the ciphertext into blocks separated by spaces, with a maximum number of blocks per line, as it is often displayed.

So parameters like block_size=5, max_blocks=7 would produce

WKLVL VDVWU LQJRI WHAWL HQFRG HGIRU PLQKW
RGHPR QVWUD WHKRZ DIRUP DWWLQ JFRPP DQGIR
UFLSK HUWHA WPLJK WEUHD NWKHW HAWLQ WREOR
FNVRI OHWWH UVDVL VRIWH QGRQH
Note: See TracTickets for help on using tickets.