One-time pad: Difference between revisions

m
lines starting with "-" count as "used"
m (support for management)
m (lines starting with "-" count as "used")
Line 13:
* such files have a file-extension ".otp"
* lines starting with "#" may contain arbitary meta-data (i.e. comments)
* lines starting with "-" count as "used"
* whitespace within the otp-data is ignored
 
 
Line 18 ⟶ 20:
<pre>
# Example data - Wikipedia - 2014-11-13
-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
</pre>
 
=={{header|Tcl}}==
 
===Part 1: random strings===
Get true random numbers, and turn them into strings.
 
Line 66 ⟶ 68:
...
 
===Part 2: Encrypt/Decrypt===
Encryption / Decryption
 
See Tcl'ers wiki:
Line 75 ⟶ 76:
 
 
===Part 3: Management===
Management
* list padfiles in directory
* list block between "comment"-lines in padfile
Anonymous user