4 ms·
> but Apple seems to have implemented things rather well here. Reading up on it further [0] it seems you could write an anti-keylogger. Just have an app that
by imron 9y ago
> but Apple seems to have implemented things rather well here.
Reading up on it further [0] it seems you could write an anti-keylogger. Just have an app that calls EnableSecureEventInput and never disables it and no other processes would be able to capture key input:
"The system will no longer pass keyboard intercept processes keyboard events if your process has enabled secure input even when your process is moved to the background. It now becomes your process' responsibility to call DisableSecureEventInput when secure entry input is not required, such as when your process detects that it is moving to the background."
0: https://developer.apple.com/library/content/technotes/tn2150/_index.html https://developer.apple.com/library/content/technotes/tn2150...
- TrickyRick 9y agoAlthough that would probably break some apps. See for example: https://news.ycombinator.com/item?id=15488964 https://news.ycombinator.com/item?id=15488964
- imron 9y agoI'm sure it would, so you could have an icon in the task bar that could temporarily enable keylogging again.