title: Convert Byte Array to String in Kotlin
body: <p>I'm trying to generate MD5 of a string in my android code using kotlin..</p>
  
  <pre><code>val md5 = MessageDigest.getInstance("MD5")
  val hash = md5.digest(queryToSign.toByteArray(Charset.defaultCharset())).toString()
  </code></pre>
  
  <p>But this gives me: </p>
  
  <blockquote>
    <p>[B@118072</p>
  </blockquote>
  
  <p>Any thoughts?</p>