Pkeyauth

this method encodes nsdata object, hence this needs to be a category of NSData and not NSString.