FireCubeStudios / Protecc

It protecc
https://apps.microsoft.com/store/detail/protecc-2fa-client/9PJX91M06TZS
MIT License
353 stars 42 forks source link

QR Code from screenshot #7

Open FireCubeStudios opened 1 year ago

FireCubeStudios commented 1 year ago

Does anyone know a library to read QR codes from images (not taken from camera). QR Screenshots can be pasted in or uploaded from image

FadeMind commented 1 year ago

See https://github.com/zxing/zxing

https://zxing.org/w/decode.jspx

FireCubeStudios commented 1 year ago

I see thanks for sharing this

CeruleanDerpo commented 1 year ago

2fast directly opens snipping tool to scan any QR on screen, it is open source, so you can see how it works. https://github.com/2fast-team/2fast

FireCubeStudios commented 1 year ago

wow its uwp too interesting

AlexVallat commented 1 year ago

See also: https://sourceforge.net/p/twofactorqrcodereader/code/ci/master/tree/

That grabs QR codes visible on screen (to KeePass, but wouldn't be hard to adapt the code for use here)

FireCubeStudios commented 1 year ago

Thanks. This is being worked on

FireCubeStudios commented 1 year ago

2fast directly opens snipping tool to scan any QR on screen, it is open source, so you can see how it works. https://github.com/2fast-team/2fast

I checked and it looks like they have a key uri parser which will help in #4 and this issue. I need to implement #4 before I can do this as all apps seem to export via this method https://github.com/2fast-team/2fast/blob/6016b6c3368ac17a786e1ccce7deeaad358d9bab/Project2FA.Core/Services/Parser/Project2FAParser.cs#L19