Anonymous user
One-time pad: Difference between revisions
m
support for management
m (→{{header|Tcl}}: </lang>) |
m (support for management) |
||
Line 9:
* 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.
To support the management of pad-files:
* such files have a file-extension ".otp"
* lines starting with "#" may contain arbitary meta-data (i.e. comments)
For example, here is the data from [http://upload.wikimedia.org/wikipedia/commons/6/60/One-time_pad.svg Wikipedia]:
<pre>
# Example data - Wikipedia - 2014-11-13
ZDXWWW EJKAWO FECIFE WSNZIP PXPKIY URMZHI JZTLBC YLGDYJ
HTSVTV RRYYEG EXNCGA GGQVRF FHZCIB EWLGGR BZXQDQ DGGIAK
Line 27 ⟶ 32:
Get true random numbers, and turn them into strings.
From Tcl'ers wiki [http://wiki.tcl.tk/29163
<lang Tcl>puts "# True random chars for one-time pad"
Line 57 ⟶ 62:
: IDEVVW KCTMY KLKLID DSGKIV WHMOX LIEYWF MCIECW OUQVIV.
</pre>
Todo: write strings to file
...
===Part 2===
Encryption / Decryption
See Tcl'ers wiki:
[http://wiki.tcl.tk/2884 vignere]
[http://wiki.tcl.tk/23095 Vigenere]
...
===Part 3===
Management
* list padfiles in directory
* list block between "comment"-lines in padfile
...
|