-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get RSA public key string #20
Comments
Thats quite strange. Your code snippet seems okay. Any functionality of I'm sorry, but I guess I can't help you. |
@hohl I have same issue. I found that reason of it is wrong encoding of NSData that return method [keyPair.public dataValue]; I think that this issue and this issue is same. |
You mean, using |
For fixing this issue change method - (NSString *)description
{
return [[NSString alloc] initWithData:[self dataValue] encoding:NSUTF8StringEncoding];
} to - (NSString *)description
{
return [[self dataValue] base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];
} in MIHRSAPublicKey.m |
I am sorry. It just looks like similar bugs. Everything working for me without |
|
Sorry if it wasn't clear, but it's about the |
Oh dear. Since the I'll fix it immeditley, this should do the job:
|
I want to send the public key to the server.
This is how I tried to get the public key string, but it returns null:
Any suggestions?
The text was updated successfully, but these errors were encountered: