Code Monkey home page Code Monkey logo

rsa's People

Contributors

reejosamuel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rsa's Issues

App is crashing on decryption

App Crashing on Decryption

I have generated keys and send public key as base 64 for java server key, server return me encrypted text. While decrypt the text, i am receiving error message "Error decrypting, OSStatus == -50."

A problem to connect to .NET server with RSA encrypt

I have to send my public key modulus and exponent to the .NET server which use my client RSA public key encrypt a random message.
I decrypt the data back.But a messed message show.I wonder if the text encoding type is different,but I changed the type and never worked.

Crash in Example Code

The current example application crashes at line 470 of class RSA.m while trying to decrypt after a key pair was generated.

Can't able to decrypt the data

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

Using privateKeyRef instead of publicKeyRef while encrypting data using encryptUsingPrivateKeyWithData

I found that you are using only publicKeyRef in both encryption (encryptUsingPublicKeyWithData, encryptUsingPrivateKeyWithData) whereas privateKeyRef should be used in encryptUsingPrivateKeyWithData.

In - (NSString *)rsaEncryptWithData:(NSData*)data usingPublicKey:(BOOL)usePublicKey server:(BOOL)isServer and on line number 438 you used SecKeyRef key = self.publicKeyRef; for both cases.
I tried to use privateKeyRef in place of publicKeyRef but I got nil response. Please fix it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.