Are CC_MD5() and CC_SHA1() available in iOS 4?

后端 未结 4 1824
死守一世寂寞
死守一世寂寞 2021-02-14 19:02

I am looking to make use of MD5 or SHA-1 in my iOS application targeted at iOS 4 and later. I use the CC_MD5() and CC_SHA1() functions from CommonCrypto/CommonDigest.h. It seems

4条回答
  •  我寻月下人不归
    2021-02-14 19:30

    In the header file at path : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/CommonCrypto/CommonDigest.h

    we can see :

    extern unsigned char *CC_MD5(const void *data, CC_LONG len, unsigned char *md)
    __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0);
    

    So, Apple now tell us it is supported :-)

提交回复
热议问题