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: Ian Keith <email@hidden>
- Date: Thu, 3 May 2007 17:59:45 -0400
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.
Ian Keith
On May 3, 2007, at 2:50 PM, Walt Horat wrote:
Our windows counterparts are using .NET classes for DES encryption.
I've found the OSS crypto++ library, which produces results
incompatible with the DESCryptoServiceProvider.
Are there any native OS services for DES encryption? Hopefully a
cocoa friendly solution?
Any pointers, clues, advice, hints or links to same appreciated.
Walt Horat
email@hidden
"Don't sweat it -- it's not real life. It's only ones and zeroes."
_______________________________________________
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