Hi,
i am using asynchronous URL connection to access a resource from server which uses HTTP digest authentication. In my
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
delegate method i have the following code
newCredential=[NSURLCredential credentialWithUser: username password: pass persistence:NSURLCredentialPersistenceNone];
[[challenge sender] useCredential:newCredential
forAuthenticationChallenge:challenge];
The default password parameter in NSURLCredential is in NSString format. However, i have a password which is in byte array format. How can i use byte array password in string format. I am having difficulty in which encoding format should i use when converting byte array to NSString format in this particular case.