Skip to content
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

Can't able to decrypt the data #5

Open
VinothAlbert opened this issue Jan 11, 2018 · 3 comments
Open

Can't able to decrypt the data #5

VinothAlbert opened this issue Jan 11, 2018 · 3 comments

Comments

@VinothAlbert
Copy link

After encrypt the string using Server Public Key, the encrypted data can not be decrypted at server using the Server Private Key.

Exception:
The data to be decrypted exceeds the maximum for this modulus of 128 bytes

Kindly help me to fix it

@iKushalManiyar
Copy link

rsaDecryptWithData the key is nil when I open the app again and decrypt the text.

  • (NSString )rsaDecryptWithData:(NSData)data usingPublicKey:(BOOL)yes{
    NSData *wrappedSymmetricKey = data;
    SecKeyRef key = yes?self.publicKeyRef:self.privateKeyRef;

@thomers
Copy link

thomers commented Oct 6, 2019

@iKushalManiyar I have the same problem. Did you manage to fix it?

@thomers
Copy link

thomers commented Oct 7, 2019

Fixed here: thomers@c84aaf3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants