title: Python 3 error: TypeError: Can't convert 'bytes' object to str implicitly in string that has more than 3 elements
body: <p>I wanted to make SHA256 hasher that will save both input and output in text file. I searched stackoverflow for answers but it didn't work. I wanted it to write in the text file: </p>
  
  <pre><code>all = str("At: " + date + " you have encrypted: " + text + " into:" + hex_dig)
  text_file.write(together)
  </code></pre>
  
  <p>While the date looks like that: </p>
  
  <pre><code>date = time.strftime("%Y-%m-%d %H:%M:%S")
  </code></pre>
  
  <p>It gave me this error in the first line of my sample: <code>TypeError: Can't convert 'bytes' object to str implicitly</code>.</p>