Re: Possible OT, q>re crypto and cocoa (DES)
Re: Possible OT, q>re crypto and cocoa (DES)
- Subject: Re: Possible OT, q>re crypto and cocoa (DES)
- From: Chris Ridd <email@hidden>
- Date: Fri, 04 May 2007 08:05:12 +0100
- Thread-topic: Possible OT, q>re crypto and cocoa (DES)
On 3/5/07 10:59, "Ian Keith" <email@hidden> wrote:
> Openssl will do what you need but it's not really a "Cocoa friendly
> solution." I use it and have no problems moving data back and forth
> with DESCryptoProvider, but it did involve writing Obj-C wrappers
> around chunks of C code and finding the right settings (hint: use the
> "EVP_des_cbc" cipher for compatibility).
>
> Add the "-lcrypto" linker flag to your project and import the
> <openssl/evp.h> file. Look up the EVP_EncryptInit_ex,
> EVP_EncryptUpdate and EVP_EncryptFinal_ex functions (and the Decrypt
> counterparts). You can find sample code on the web for setting up the
> arguments and calling those functions. It's kind of OT so contact me
> off list if you have questions.
Consider using Apple's Security.framework instead. It is an implementation
of the CDSA, hence the mailing list to discuss it is
email@hidden.
There's Objective-C wrappers for it, though not from Apple.
Cheers,
Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden