One-time pad/Julia: Difference between revisions

m
link
mNo edit summary
m (link)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
See [[One-time_pad]]
 
This is a console based app for One Time Pad file management. It uses the internet random.org as source combined with local random number generation as a backup source of random letters.
<langsyntaxhighlight lang="julia">using Dates, HTTP
 
const configs = Dict("OTPdir" => ".")
Line 217 ⟶ 219:
fp = open(pathname, "w")
for _ in 1:writes
write(fp, rand(ltrs, writeslen))
seekstart(fp)
end
Line 299 ⟶ 301:
 
onetimepadapp()
</syntaxhighlight>
</lang>
4,102

edits