Giter Site home page Giter Site logo

Public Key about objective-c-rsa HOT 8 OPEN

ideawu avatar ideawu commented on July 22, 2024
Public Key

from objective-c-rsa.

Comments (8)

ddaddy avatar ddaddy commented on July 22, 2024

I think i've managed to get a base64 encoded key from java now, however this code now pauses on line 108 - OSStatus status = SecItemAdd((__bridge CFDictionaryRef)publicKey, &persistKey);
And when I click continue in the debugger it carries on as normal however the encoded string is NULL.

Is there an issue when trying with a new key?
It's not crashing, just pausing.

from objective-c-rsa.

ddaddy avatar ddaddy commented on July 22, 2024

Ok, sorry about so many notes. It seems it's pausing with an Exception, as if I remove the exception breakpoint it runs just fine, however the encoded string is always NULL :(

from objective-c-rsa.

ideawu avatar ideawu commented on July 22, 2024

Is the public key string in the format of this form?

-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEChqe80lJLTTkJD3X3Lyd7Fj+
zuOhDZkjuLNPog3YR20e5JcrdqI9IFzNbACY/GQVhbnbvBqYgyql8DfPCGXpn0+X
NSxELIUw9Vh32QuhGNr3/TBpechrVeVpFPLwyaYNEk1CawgHCeQqf5uaqiaoBDOT
qeox88Lc1ld7MsfggQIDAQAB
-----END PUBLIC KEY-----

from objective-c-rsa.

ddaddy avatar ddaddy commented on July 22, 2024

Yes, I can get it working fine if I setup a new iOS project. I was originally using an OSX project.
I wonder if it's an issue to do with code signing as I don't have a valid OSX dev membership but do for iOS.
For it to use the keychain would it require proper code signing?

from objective-c-rsa.

cheizer avatar cheizer commented on July 22, 2024

I have an OS X CLI project and i'm having the same issue.

108 - OSStatus status = SecItemAdd((__bridge CFDictionaryRef)publicKey, &persistKey);
OSStatus = -25303 and return NULL encoded string.

The persistKey appears to be nil after the SecItemAdd.

from objective-c-rsa.

tomguan avatar tomguan commented on July 22, 2024

Hello. I wander how to encrype RSA by two parameters, "Mod“, ”Exp" ?

from objective-c-rsa.

winwys avatar winwys commented on July 22, 2024

iOS9 no worked。。。help

from objective-c-rsa.

btnguyen2k avatar btnguyen2k commented on July 22, 2024

@tomguan this link might help http://www.scriptscoop.com/t/b7214526ca56/ios-create-seckey-from-modulus-and-exponent-in-swift.html

from objective-c-rsa.

Related Issues (20)

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.