Encryption Frameworks in Cocoa

  • Hi All,

              I'm developing a cocoa application. I need to encrypt &
    decrypt the data ( mostly NSStrings and files ). Can any one point me to the
    opensource frameworks available for this. If not provide the way to
    implement it in Cocoa

    Thanks in Advance,
    JanakiRam.
  • GIYF!. Doing a search on "encryption classes cocoa" returned this post:

    http://lovemac.org/2006/07/15/encryption-in-the-cocoa-frameworks/

    Otherwise, you can always use the many available C libraries for encryption.

    On Feb 8, 2008 1:44 AM, JanakiRam <johnyatforums...> wrote:
    > Hi All,
    >
    > I'm developing a cocoa application. I need to encrypt &
    > decrypt the data ( mostly NSStrings and files ). Can any one point me to the
    > opensource frameworks available for this. If not provide the way to
    > implement it in Cocoa
    >
    > Thanks in Advance,
    > JanakiRam.
    >

    --
    Ritesh
    http://www.riteshn.com
  • On 7 Feb '08, at 11:44 PM, JanakiRam wrote:

    > I'm developing a cocoa application. I need to encrypt &
    > decrypt the data ( mostly NSStrings and files ). Can any one point
    > me to the
    > opensource frameworks available for this. If not provide the way to
    > implement it in Cocoa

    I've been doing a lot of work with crypto over the past month. The
    best Cocoa-level framework for this is Wade Tregaskis's open-source
    Keychain.framework. If you just want to do basic symmetric encryption,
    all you should need is its Key class, and the utility methods for
    encrypting NSData objects in NSDataAdditions.

    Alternatively, if you want to keep your code size smaller or avoid
    depending on 3rd party stuff, you can use the built-in C functions in
    <CommonCrypto/CommonCryptor.h>, available in 10.4+. They're lower
    level but still quite easy to use.

    Now, if you want to use public-key encryption, things get more
    complicated, because you have to work with the Keychain for accessing
    certificates and keys. But Keychain.framework does have support for
    that. (It gets much more complicated if you need to generate your own
    key-pairs and certs, which is what I've been dealing with; if you need
    to do that, we should probably take this thread to the Apple cdsa-
    discuss mailing list instead.)

    --Jens
  • Le 8 févr. 08 à 16:53, Jens Alfke a écrit :

    >
    > On 7 Feb '08, at 11:44 PM, JanakiRam wrote:
    >
    >> I'm developing a cocoa application. I need to encrypt &
    >> decrypt the data ( mostly NSStrings and files ). Can any one point
    >> me to the
    >> opensource frameworks available for this. If not provide the way to
    >> implement it in Cocoa
    >
    > I've been doing a lot of work with crypto over the past month. The
    > best Cocoa-level framework for this is Wade Tregaskis's open-source
    > Keychain.framework. If you just want to do basic symmetric
    > encryption, all you should need is its Key class, and the utility
    > methods for encrypting NSData objects in NSDataAdditions.
    >
    > Alternatively, if you want to keep your code size smaller or avoid
    > depending on 3rd party stuff, you can use the built-in C functions
    > in <CommonCrypto/CommonCryptor.h>, available in 10.4+. They're lower
    > level but still quite easy to use.

    CommonCryptor.h was introduced in 10.5. In 10.4, there is only
    CommonDigest.h.
  • Take a look at SSCrypto for OpenSSL-based encryption.
    http://septicus.com/products/opensource/

    There's also a Keychain class out there that makes using the Keychain
    rather simple (rather than needlessly complicated).
    http://sourceforge.net/projects/keychain/

    Adam Knight
    <adam.knight...>

    On Feb 8, 2008, at 1:44 AM, JanakiRam wrote:

    > Hi All,
    >
    > I'm developing a cocoa application. I need to encrypt &
    > decrypt the data ( mostly NSStrings and files ). Can any one point
    > me to the
    > opensource frameworks available for this. If not provide the way to
    > implement it in Cocoa
    >
    > Thanks in Advance,
    > JanakiRam.
  • On 8 Feb '08, at 8:00 AM, Adam Knight wrote:

    > Take a look at SSCrypto for OpenSSL-based encryption.
    > http://septicus.com/products/opensource/
    >
    > There's also a Keychain class out there that makes using the
    > Keychain rather simple (rather than needlessly complicated).
    > http://sourceforge.net/projects/keychain/

    I've used both, and I'd recommend Keychain.framework over SSCrypto.
    It's been out longer, it supports a lot more functionality, and it's
    designed in an object-oriented style.

    --Jens
  • On 8 Feb '08, at 7:57 AM, Jean-Daniel Dupas wrote:

    > CommonCryptor.h was introduced in 10.5. In 10.4, there is only
    > CommonDigest.h.

    Oops, my bad. As an alternative, there's Apple's "CryptoSample" sample
    code that demonstrates doing basic encryption with the low-level CDSA
    API.

    —Jens
previous month february 2008 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29    
Go to today
MindNode
MindNode offered a free license !