Jump to content

One-time pad: Difference between revisions

m
(Tcl / part1: True random chars for one-time pad)
Line 23:
 
=={{header|Tcl}}==
 
===Part 1===
Get true random numbers, and turn them into strings.
 
From [http://wiki.tcl.tk/29163 Tcl'ers wiki] "Cryptographically secure random numbers using /dev/urandom"
 
<lang Tcl>puts "# True random chars for one-time pad"
Line 45 ⟶ 50:
}
puts ":$rs."
</lang>
 
{{out}}
Line 51 ⟶ 57:
: IDEVVW KCTMY KLKLID DSGKIV WHMOX LIEYWF MCIECW OUQVIV.
</pre>
 
===Part 2===
...
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.