You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
439 B

## 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