document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/usr/bin/python                                                              
  2. import string
  3. import random
  4. import binascii
  5.  
  6. def genera_str(tam):
  7.     return \'\'.join(random.choice(string.ascii_uppercase) for x in range(tam))
  8.  
  9. def main():
  10.     llaves = 5
  11.     tam = 15
  12.  
  13.     f1 = open(\'./Roberto/key_1.txt\',\'w\')
  14.     f2 = open(\'./Ramon/key_2.txt\', \'w\')
  15.     print f1
  16.     print f2
  17.     print \'\\n\'
  18.  
  19.     for i in range(llaves):
  20.         clave = str(int(binascii.hexlify(genera_str(tam)),16))
  21.         print clave
  22.         f1.write(clave + \'\\n\')
  23.         f2.write(clave + \'\\n\')
  24.  
  25.     f1.close()
  26.     f2.close()
  27.     print \'\\n\'
  28.     print f1
  29.     print f2
  30.  
  31.  
  32. main()
');