title: How should I write a decryption program for this?
body: <p>I am trying to write an decryption code using Python. The encryption works and outputs the following 119105108108 116104105115 11911111410763 for the words &quot;will this work? in a file called myfile. But i have no idea how to decrypt it or whether it can even be decrypted and would love some help.</p>
  <pre><code>#declare variables
  fo = 0
  ascii_val = []
  asci_val = []
  asc_val = []
  listtostr = 0
  listtost = 0
  listtos = 0
  split_val = 0
  x = 0
  
  #open files
  fo = open(&quot;myfile.txt&quot;,&quot;r&quot;)
  fo1 = open(&quot;hora.txt&quot;,&quot;w&quot;)
  
  #read text from files and put into a list    
  txt = fo.read()
  split_val = txt.split(&quot; &quot;)
  print(split_val)
  
  #process of encrypting using ascii values
  for x in split_val[0]:
      y = x.split()
      a = ord(x)
      a =str(a)
      ascii_val.append(a)
      
  print()
  
  #process
  for x in split_val[1]:
      a = ord(x)
      a =str(a)
      asci_val.append(a)
      
  print()
  
  #process
  for x in split_val[2]:
      a = ord(x)
      a =str(a)
      asc_val.append(a)
      
  #joining ascii values together
  listtostr = &quot;&quot;.join([str(x) for x in ascii_val])
  
  listtost = &quot;&quot;.join([str(x) for x in asci_val])
  
  listtos = &quot;&quot;.join([str(x) for x in asc_val])
  
  #joining all of the ascii values together
  b = listtostr + &quot; &quot; + listtost +&quot; &quot; + listtos
  print(b)
  
  #writing to new file
  fo1.write(b)
  
  #close files
  fo.close()
  fo1.close()
  </code></pre>