İptal Edildi

Extend iOS Xcode project to add funcitonality

Below is a link to a project that enables OpenSSL to be compiled for ARM7 ARM7s and used within a cocoa touch Application

[url removed, login to view]

I need a class adding to this App that can accomplish the following two openssl tasks:

1. Decrypt an RSA encrypted string with a public key and store the result in an NSDictionary object:

NSString *encrypted = @"UXPMk2jt7ppMNJ0TTGue1OOWgSq+NfX96Qgb7DpN6jPw+6ibSyAwEJlLlVz4UCM2tyBQ5Ui+S/vdxXDk86EymBOrngcwwP1d+ygNM2K94L0IXQSjlmePxD+daBK7RJbgF5P35Lib+/L6jfY+yLk1AYze4TIA7pEwbt4EWgn+0iU=";

The above string can be decoded with the following key:

-----BEGIN PUBLIC KEY-----

MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+ynZ7EvJ0F+IoGmlme/j/MpH4

7BxrIuDTJCOS99j82IL3Ww9Ubm28yOMHYPdi23WPDhR80ugaBWAnmqUZWvYKjqd4

Z4D0sJ0NVW3DDgZ4gS57zFqlvGgdVhzaVimfs7qDxIJ1o8GMuXWseZV2ZpmIjdnF

ZBol5zZTqNfk89RNnQIDAQAB

-----END PUBLIC KEY-----

2. Generate and verify ECDSA signatures.

E.g. using the following keys:

-----BEGIN EC PARAMETERS-----

BgUrgQQABg==

-----END EC PARAMETERS-----

-----BEGIN EC PRIVATE KEY-----

MD4CAQEEDnX12/boHtk0uEctbBm6oAcGBSuBBAAGoSADHgAEmRk5gNdPlbzK2Jou

ZNlrma5zzJ5b65b6jLJPDQ==

-----END EC PRIVATE KEY-----

-----BEGIN PUBLIC KEY-----

MDIwEAYHKoZIzj0CAQYFK4EEAAYDHgAEmRk5gNdPlbzK2JouZNlrma5zzJ5b65b6

jLJPDQ==

-----END PUBLIC KEY-----

- add functionality to do the equivalent of:

echo -n 'Hello World' | openssl dgst -ecdsa-with-SHA1 -sign [url removed, login to view] | openssl enc -base64

(outputs MCACDi9BVg0y2C4IxtMmlgHiAg5xQj8w4VOioXLoBoF5qA==)

and then verify:

echo 'MCACDi9BVg0y2C4IxtMmlgHiAg5xQj8w4VOioXLoBoF5qA==' | openssl enc -d -a > [url removed, login to view] && \

echo -n 'Hello World' | openssl dgst -ecdsa-with-SHA1 -verify [url removed, login to view] -keyform PEM -signature [url removed, login to view]

(outputs Verified OK)

--------

There is no need to provide a functional UI - output to NSLog is sufficient, essentially the output should a class with the following 3 methods:

-(NSString)decryptBase64RSAEncryptedString:(NSString *)encryptedString withCertificate:(NSString *)certificate;

-(NSString)generateBase64EndcodedECDSASignatureForText:(NSString *)textToSign withCertificate:(NSString *)certificate;

-(bool)validateBase64EncodedECDSASignature:(NSString *)signature forString:(NSString *)stringToValidate withCertificate:(NSString *)certificate;

and if you like for good measure ;-) you can add a method to decode JSON result of the RSA description into an NSDictionary Object.

For clarification, the certificates cannot be generated within the App as they will be supplied by an external server.

Beceriler: Cocoa, iPhone, Linux, Objective C

Daha fazlasını görün: xcode 2.1, string j, objective c project, xcode c, objective c json, json objective c, xcode, rsa, project add, openssl, objective s, ios ui, ios e, end a project, add functionality, json string, signature iphone xcode project, objective project, xcode project, ios application project, link description iphone, ios class class, class json, rsa decrypt, ios json

İşveren Hakkında:
( 1 değerlendirme ) Sheung Wan, Hong Kong

Proje NO: #4438621

1 freelancer bu iş için ortalamada 100$ teklif veriyor

hungndl

please check PM

in 7 gün içinde100$ USD
(0 Değerlendirme)
4.9