scito / extract_otp_secrets

Extract one time password (OTP) secrets from QR codes exported by two-factor authentication (2FA) apps such as "Google Authenticator". The exported QR codes from authentication apps can be captured by camera, read from images, or read from text files. The secrets can be exported to JSON or CSV, or printed as QR codes to console.
https://scito.ch/content/extract-secret-keys-google-authenticator-qr-export
GNU General Public License v3.0
1.05k stars 128 forks source link

MacOs fix #231

Closed fellnerse closed 1 month ago

fellnerse commented 1 month ago

Hey @scito ! Awesome tool, thanks for providing it! I debuged your script for mac and found the problem for only poping up one frame:

this check seems to be always true. After disabling it, I was able to run your application successfully. Obviously closing doesn't work anymore, not sure if there is another way for checking it.

scito commented 1 month ago

Hm, interesting issue. Unfortunatley, I don't have MacOS anymore. Thus, I cannot reproduce and fix it at the moment.

In requirements.txt, I limited opencv to 4.7.0. Can you change your requirements.txt opencv-contrib-python>4.7.0; sys_platform == 'darwin' and try again? Maybe, it works now with new opencv versions.

How do you get this extract_otp_secrets script? By GitHub, pip, ...?

scito commented 1 month ago

I changed the opencv-contrib-python config for macos. It passes the tests. Can you try with the master?

fellnerse commented 1 month ago

How do you get this extract_otp_secrets script? By GitHub, pip, ...?

I pulled the latest commit from github.

I changed the opencv-contrib-python config for macos. It passes the tests. Can you try with the master?

Yes! it fixed it! thanks! the closing also works with ESC. But the red close button of the window is disabled.

scito commented 1 month ago

OK, good! I think I cannot do anything about the red close button. Thus, I'll close this issue.