NSData can be represented as hexadecimal string, similar to what it outputs in its description method.
Swift
extension NSData {
func hexString() -> String {
return UnsafeBufferPointer<UInt8>(start: UnsafePointer<UInt8>(bytes), count: length)
.reduce(&quo...