Opened 10 years ago

Last modified 5 years ago

#7009 new enhancement

Formatted output options for ciphertext

Reported by: rbeezer Owned by: somebody
Priority: minor Milestone: sage-6.4
Component: cryptography Keywords: formatted ciphertext
Cc: mvngu Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
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

Change History (4)

comment:1 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:2 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:3 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:4 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.