title: NSData to display as a string
body: <p>I am building an iPhone app and stuck with the following:</p>
  
  <pre><code>unsigned char hashedChars[32];
  CC_SHA256([inputString UTF8String], [inputString lengthOfBytesUsingEncoding:NSASCIIStringEncoding], hashedChars);
  NSData *hashedData = [NSData dataWithBytes:hashedChars length:32];
  NSLog(@"hashedData = %@", hashedData);
  </code></pre>
  
  <p>The log is showing like:</p>
  
  <pre><code>hashedData = &lt;abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh&gt;
  </code></pre>
  
  <ul>
  <li>note hashedData is NSData, not NSString</li>
  </ul>
  
  <p>But what I need is to convert hashedData into NSString that looks like:</p>
  
  <pre><code>NSString *someString = @"abcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefgh";
  </code></pre>
  
  <p>So basically the result needs to be like hashedData except I don't want the angle brackets and spaces in between.</p>