One-time pad: Difference between revisions
Content added Content deleted
m (data from wp) |
m (Vigenère cipher / /dev/random) |
||
Line 4: | Line 4: | ||
;Sub-Tasks: |
;Sub-Tasks: |
||
* generate the data for a One-time pad (user needs to specify a filename and length) |
* generate the data for a One-time pad (user needs to specify a filename and length) |
||
: The important part is to get "true random" numbers, e.g. from /dev/random |
|||
* encryption / decryption ( basically the same operation, |
* encryption / decryption ( basically the same operation, much like [[Rot-13]] ) |
||
: For this step, much of [[Vigenère cipher]] could be reused,<br>with the key to be read from the file containing the One-time pad. |
|||
* optional: management of One-time pads: list, mark as used, delete, etc. |
* optional: management of One-time pads: list, mark as used, delete, etc. |
||
: Somehow, the users needs to keep track which pad to use for which partner. |
|||
Revision as of 09:06, 18 November 2014
One-time pad is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.
Implement a One-time pad
- Sub-Tasks
- generate the data for a One-time pad (user needs to specify a filename and length)
- The important part is to get "true random" numbers, e.g. from /dev/random
- encryption / decryption ( basically the same operation, much like Rot-13 )
- For this step, much of Vigenère cipher could be reused,
with the key to be read from the file containing the One-time pad.
- optional: management of One-time pads: list, mark as used, delete, etc.
- Somehow, the users needs to keep track which pad to use for which partner.
For example, here is the data from Wikipedia:
ZDXWWW EJKAWO FECIFE WSNZIP PXPKIY URMZHI JZTLBC YLGDYJ HTSVTV RRYYEG EXNCGA GGQVRF FHZCIB EWLGGR BZXQDQ DGGIAK YHJYEQ TDLCQT HZBSIZ IRZDYS RBYJFZ AIRCWI UCVXTW YKPQMK CKHVEX VXYVCS WOGAAZ OUVVON GCNEVR LMBLYB SBDCDC PCGVJX QXAUIP PXZQIJ JIUWYH COVWMJ UZOJHL DWHPER UBSRUJ HGAAPR CRWVHI FRNTQW AJVWRT ACAKRD OZKIIB VIQGBK IJCWHF GTTSSE EXFIPJ KICASQ IOUQTP ZSGXGH YTYCTI BAZSTN JKMFXI RERYWE