henrinormak / Heimdall

Heimdall is a wrapper around the Security framework for simple encryption/decryption operations.
MIT License
401 stars 68 forks source link

Keychain Accessibility #39

Open colinmorelli opened 8 years ago

colinmorelli commented 8 years ago

Heimdall doesn't currently have a way to specify accessibility of the key pair entries in the keychain. Unfortunately this means that apps which require access to the keypairs in the background currently won't work correctly while the device is locked (due to the default accessibility of kSecAttrAccessibleWhenUnlocked).

I think it would be helpful to be able to specify a value for kSecAttrAccessible that would override the default. I might have a chance to make a PR soonish, but would appreciate help.

henrinormak commented 8 years ago

I can't promise a deadline for this, but when I get a chance I can look into this. A PR would be most welcome (preferably a parameter for initialisation that carries a default value that matches the current behaviour).

sjacs5537 commented 8 years ago

I also look forward to the background access function