flutter_photo_manager icon indicating copy to clipboard operation
flutter_photo_manager copied to clipboard

CC_MD5 函数。这个函数在 macOS 10.15 和更高版本中已被弃用,因为它在加密上存在安全问题。Apple 建议使用 SHA256 或更强的哈希算法。

Open zengchanghuan opened this issue 1 year ago • 0 comments

Version

2.6.0

Platforms

macOS

Device Model

13.2.1

flutter info

Flutter (Channel stable, 3.7.0, on macOS 13.2.1 22D68 darwin-x64, locale zh-Hans)
    • Flutter version 3.7.0 on channel stable at /Users/zengch/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b06b8b2710 (4 个月前), 2023-01-23 16:55:55 -0800
    • Engine revision b24591ed32
    • Dart version 2.19.0
    • DevTools version 2.20.1

How to reproduce?

CC_MD5 函数。这个函数在 macOS 10.15 和更高版本中已被弃用,因为它在加密上存在安全问题。Apple 建议使用 SHA256 或更强的哈希算法。

Logs

/Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.m:10:5: warning: 'CC_MD5' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    CC_MD5(original_str, (uint) strlen(original_str), digest);
    ^
In module 'CommonCrypto' imported from /Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.h:2:
extern unsigned char *CC_MD5(const void *data, CC_LONG len, unsigned char *md)
                      ^
/Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.m:21:5: warning: 'CC_MD5' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    CC_MD5(original_str, (uint) strlen(original_str), digest);
    ^
In module 'CommonCrypto' imported from /Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.h:2:
extern unsigned char *CC_MD5(const void *data, CC_LONG len, unsigned char *md)
                      ^
/Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.m:70:5: warning: 'CC_MD5_Init' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    CC_MD5_Init(&hashObject);
    ^
In module 'CommonCrypto' imported from /Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.h:2:
extern int CC_MD5_Init(CC_MD5_CTX *c)
           ^
/Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.m:88:9: warning: 'CC_MD5_Update' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
        CC_MD5_Update(&hashObject, (const void *) buffer, (CC_LONG) readBytesCount);
        ^
In module 'CommonCrypto' imported from /Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.h:2:
extern int CC_MD5_Update(CC_MD5_CTX *c, const void *data, CC_LONG len)
           ^
/Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.m:96:5: warning: 'CC_MD5_Final' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    CC_MD5_Final(digest, &hashObject);
    ^
In module 'CommonCrypto' imported from /Users/zengch/.pub-cache/hosted/pub.dev/photo_manager-2.6.0/macos/Classes/core/PMMD5Utils.h:2:
extern int CC_MD5_Final(unsigned char *md, CC_MD5_CTX *c)

Example code (optional)

CC_MD5

Contact

[email protected]

zengchanghuan avatar May 19 '23 01:05 zengchanghuan