¡@

Home 

2014/10/15 ¤U¤È 10:13:32

iphone Programming Glossary: rsa

Iphone - How to encrypt NSData with public key and decrypt with private key?

http://stackoverflow.com/questions/10072124/iphone-how-to-encrypt-nsdata-with-public-key-and-decrypt-with-private-key

snippet for encryption and decryption. iphone encryption nsdata decrypt share improve this question I have tried RSA Encryption and Decryption for NSString and you may well modify it and make it work for NSData Add Security.Framework to.. setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef.. setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPrivateKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef..

RSA implementations in Objective C

http://stackoverflow.com/questions/10222524/rsa-implementations-in-objective-c

implementations in Objective C I am working on a simple app in objective C that uses RSA Algorithm . I want to use it on.. implementations in Objective C I am working on a simple app in objective C that uses RSA Algorithm . I want to use it on Server Client Communications. I need help in RSA Algorithm Implementation in iOS iPhone... a simple app in objective C that uses RSA Algorithm . I want to use it on Server Client Communications. I need help in RSA Algorithm Implementation in iOS iPhone. I have knowledge of encryption and decryption. I want an opensource library or code..

Converting Raw RSA Key value to SecKeyRef Object for Encryption

http://stackoverflow.com/questions/1536894/converting-raw-rsa-key-value-to-seckeyref-object-for-encryption

Raw RSA Key value to SecKeyRef Object for Encryption Hi I have a RSa publicKey value in base64 how do i convert to SecKeyRef Object.. Hi I have a RSa publicKey value in base64 how do i convert to SecKeyRef Object without adding to Keychain Can i add a RSA Raw value to Keychain which is not in X509 format thanks in advance iphone share improve this question The following.. init peerPublicKeyAttr setObject id kSecClassKey forKey id kSecClass peerPublicKeyAttr setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey id kSecAttrApplicationTag peerPublicKeyAttr setObject..

RSA Encryption on iPhone

http://stackoverflow.com/questions/2418337/rsa-encryption-on-iphone

Encryption on iPhone According the discussion on http forums.macrumors.com showthread.php t 551476 the code seen below.. iPhone According the discussion on http forums.macrumors.com showthread.php t 551476 the code seen below would do for RSA encryption. The datatype of the key public is SecKeyRef. I will not be using the keychain though as I'm only interested..

How to find out the modulus and exponent of RSA Public Key on iPhone/Objective C

http://stackoverflow.com/questions/3840005/how-to-find-out-the-modulus-and-exponent-of-rsa-public-key-on-iphone-objective-c

to find out the modulus and exponent of RSA Public Key on iPhone Objective C Is there a possible way to find out the modulus and exponent of the Public Key created..

send RSA public key to iphone and use it to encrypt

http://stackoverflow.com/questions/4211484/send-rsa-public-key-to-iphone-and-use-it-to-encrypt

RSA public key to iphone and use it to encrypt I have a TCP socket server and I want to do the following w o using SSL On server.. iphone and use it to encrypt I have a TCP socket server and I want to do the following w o using SSL On server make RSA key pair I know how to do this using openssl's crypto library On server send the public key to iphone and keep the private.. elsewhere. So thanks to everyone I cribbed code from This code assumes several things You've already generated your RSA key pairs I'm using a 4096 bit key and it seems speedy enough and using the private key created a DER encoded certificate..

iOS - Creating SecKeyRef from exponent+modulus

http://stackoverflow.com/questions/5942712/ios-creating-seckeyref-from-exponentmodulus

Creating SecKeyRef from exponent modulus I would like to decrypt a RSA encoded blob on iPhone by having an exponent and modulus as private key. In Java with javax.crypto this could be easily.. exponent and modulus as private key. In Java with javax.crypto this could be easily achieved by code like this 1 key RSAPublicKeySpec keySpec new RSAPublicKeySpec myModulus myPublicExponent KeyFactory fact KeyFactory.getInstance RSA Key pubKey.. key. In Java with javax.crypto this could be easily achieved by code like this 1 key RSAPublicKeySpec keySpec new RSAPublicKeySpec myModulus myPublicExponent KeyFactory fact KeyFactory.getInstance RSA Key pubKey fact.generatePublic keySpec..

Saving SecKeyRef device generated public/private key pair on disk

http://stackoverflow.com/questions/5988735/saving-seckeyref-device-generated-public-private-key-pair-on-disk

SecKeyRef device generated public private key pair on disk I've generated an RSA symmetric key pair on a device using SecKeyGeneratePair on a device. I have SecKeyRef struct pointers for each key. So how.. queryPublicKey setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey id kSecReturnData Get the key bits...

RSA Encryption-Decryption in iphone

http://stackoverflow.com/questions/788569/rsa-encryption-decryption-in-iphone

Encryption Decryption in iphone I am developing Iphone application. I have used SecKeyGeneratePair method of Security Security.h.. the key sent decrypt the text on server side Edited to add Thanks Alex Reynolds for your quick response. In case of RSA Encryption first I have to generate a key pair which is in the form of SecKeyRef objects. Then we will pass that reference.. might help you get started. I'm doing a HMAC SHA1 signature 'digest' here but the general idea is the same for your RSA case #import Foundation NSString.h #import CommonCrypto CommonHMAC.h #import CommonCrypto CommonDigest.h @interface NSString..

Having trouble decrypting in C# something encrypted on iPhone using RSA

http://stackoverflow.com/questions/1133724/having-trouble-decrypting-in-c-sharp-something-encrypted-on-iphone-using-rsa

if certificate.GetNameInfo X509NameType.SimpleName false CERT clientCert certificate break using var rsa RSACryptoServiceProvider clientCert.PrivateKey try var encryptedBytes Convert.FromBase64String cipherText var decryptedBytes.. clientCert.PrivateKey try var encryptedBytes Convert.FromBase64String cipherText var decryptedBytes rsa.Decrypt encryptedBytes false var plaintext Encoding.UTF8.GetString decryptedBytes return plaintext catch CryptographicException.. 2 debug.db e.g. ~ Library Application Support iPhone Simulator 4.3 Library Keychains keychain 2 debug.db c# iphone rsa encryption share improve this question Well... the first step as you say you have done is to encrypt the same messages..

Extracting a public key from key pair in key chain

http://stackoverflow.com/questions/11467215/extracting-a-public-key-from-key-pair-in-key-chain

a public key from key pair in key chain The Problem Retrieving a public key For an iPhone App I need to create a rsa key pair store it in the key chain and retrieve the public key. Fortunately Apple released a Crypto Exercise Sample where.. 5e313212 80f44e04 d5b5e2db 9e7f26ae 9b8ef8ee 2e177702 18673b1a f125d3c8 d9ddf978 fb020301 0001 iphone objective c ios rsa iphone sdk 5.0 share improve this question o Your SecItemDelete code does not work as you expect it to. If you want..

How to Create SeckeyRef from exponent and modulus of Public key and use in SecKeyEncrypt method

http://stackoverflow.com/questions/11516355/how-to-create-seckeyref-from-exponent-and-modulus-of-public-key-and-use-in-secke

and i want to use this SecKeyEncrypt as public key iphone encryption rsa public key encryption share improve this question solved the problem NSData publicTag self PublicKeyItems in Generating..

iPhone: How to create a SecKeyRef from a public key file (PEM)

http://stackoverflow.com/questions/1595013/iphone-how-to-create-a-seckeyref-from-a-public-key-file-pem

find any code examples or documentation on this it feels that I'm doing something wrong... thanks iphone encryption rsa public key share improve this question You should be able to interpret a DER encoded pem and get a cert using SecCertificateCreateWithData..

RSA Encryption on iPhone

http://stackoverflow.com/questions/2418337/rsa-encryption-on-iphone

public kSecPaddingNone pPlainText strlen char pPlainText 1 aCipherText iCipherLength iphone cryptography rsa keychain cryptoapi share improve this question You probably want to look at this thread on the Apple Developer Forums..

How to find out the modulus and exponent of RSA Public Key on iPhone/Objective C

http://stackoverflow.com/questions/3840005/how-to-find-out-the-modulus-and-exponent-of-rsa-public-key-on-iphone-objective-c

Key created with SecKeyGeneratePair the Security Framework in general iphone objective c cocoa touch encryption rsa share improve this question Busted my head on this but here's a solution I've found without using any external packages..

send RSA public key to iphone and use it to encrypt

http://stackoverflow.com/questions/4211484/send-rsa-public-key-to-iphone-and-use-it-to-encrypt

the PKCS1 padded result fits into 128 bytes. I don't know how to do 2~4. Anyone knows iphone c cryptography openssl rsa share improve this question This should do what you're asking it encrypts data with the server's public key. It's not..

Use existing PEM private key to sign data on iOS

http://stackoverflow.com/questions/4407415/use-existing-pem-private-key-to-sign-data-on-ios

do this I don't need this for appstore so don't be shy with responses if they are against the appstore rules. iphone rsa share improve this question Ok I ended up using a version of OpenSSL compiled for iPhone https github.com x2on OpenSSL..

iOS - Creating SecKeyRef from exponent+modulus

http://stackoverflow.com/questions/5942712/ios-creating-seckeyref-from-exponentmodulus

a key manually having a modulus exponent If so can you give me a clue on how Thanks in advance iphone ios security rsa share improve this question How are your exponent and modulus encoded If they're in a PKCS#12 blob you can use SecPKCS12Import..

iPhone RSA algorithm with modulus and exponent [duplicate]

http://stackoverflow.com/questions/6665832/iphone-rsa-algorithm-with-modulus-and-exponent

I encode decode data with RSA algotithm on iPhone Or how can I generate DER format from modulus and exponent iphone rsa x.509 share improve this question If you want to generate DER data on the iPhone I have code on GitHub that will let..

RSA encryption library or Classes

http://stackoverflow.com/questions/7023163/rsa-encryption-library-or-classes

the Algorithm needs to common amongst the parties. Please provide some valuable info. Thanks Aditya iphone encryption rsa encryption asymmetric share improve this question Isn't that what SecKeyEncrypt and SecKeyDecrypt functions do The functions..

RSA Encryption public key?

http://stackoverflow.com/questions/7255991/rsa-encryption-public-key

created public key from keychain. is it possible from string 'Modulus' and 'Exponent' values iphone ios4 cryptography rsa public key encryption share improve this question See this answer over here http stackoverflow.com a 10643894 584616..

RSA Encryption-Decryption in iphone

http://stackoverflow.com/questions/788569/rsa-encryption-decryption-in-iphone

to the data stored in object SecKeyRef which is NSCFType object which is a struct __SecKey. iphone cryptography rsa keychain share improve this question Consider using NSData to get the string value and perhaps use Base64 or some other..