Closed Alexandro1112 closed 1 year ago
-50 is the value for errSecParam
, which means "One or more parameters passed to the function are not valid." according to the Security framework documentation.
You get this error because you are passing the wrong arguments to this function, the Objective-C prototype for this function is:
OSStatus SecKeychainFindGenericPassword(
CFTypeRef keychainOrArray,
UInt32 serviceNameLength,
const char *serviceName,
UInt32 accountNameLength,
const char *accountName,
UInt32 *passwordLength,
void * _Nullable *passwordData,
SecKeychainItemRef _Nullable *itemRef);
Thanks.As i knew, I need use ctypes
for decode path to keychain framework to int32.
Can not return password from keychains via framework-Security. Hello, @ronaldoussoren. I trying get saved password from key-chains util via python.I had this script:
Mac OS Big Sur 11.7.4
**However, program return:
How to solve the problem?