## generate One Time Pad from dev/random
|
|
|
|
|
|
import os, sys
|
|
|
|
|
|
n = 0
|
|
done = False
|
|
while done == False:
|
|
n += 1
|
|
with open("/dev/random", 'rb') as f:
|
|
#print(type(repr(f.read(20))))
|
|
#print(repr(f.read(1000)))
|
|
fiver = repr(f.read(5))
|
|
with open("/home/alpcentaur/ProjektA/Brieftaube/Pad.txt", 'a') as g:
|
|
g.write(fiver + '\n')
|
|
print(n)
|
|
|
|
|
|
if n == 100:
|
|
done = True
|
|
|
|
|