title: Can I hash two strings into one hash?
body: <p>I am pretty new to Python and wanted to create some code which hashed together two strings. In particular for my case I wanted to hash the hash of a file and a Bitcoins Blocks hash. The code bellow obviously doesn't work as sha256() takes only one argument. Do you guys know anyway around this? </p>
  
  <p>Thanks,</p>
  
  <pre><code>from __future__ import print_function
  import blocktrail, time, csv, hashlib, sys
  
  client = blocktrail.APIClient(api_key="x", api_secret="x", network="BTC", testnet=False)
  address = client.address('x')
  
  latest_block = client.block_latest()
  hash_list = []
  h = latest_block['hash']
  sha256 = hashlib.sha256()
  BUF_SIZE = 65536
  print("test")
  
  with open('entries#x.csv', 'rb') as entriesfile:
      buf = entriesfile.read(BUF_SIZE)
      while len(buf) &gt; 0:
          sha256.update(buf)
          buf = entriesfile.read(BUF_SIZE)
      print(sha256.hexdigest())
  
  entryhash = sha256.hexdigest()
  
  hashofhe = hashlib.sha256(b'entryhash', 'h')
  </code></pre>