5 ms·
It uses libpam-google-authenticator, looking at the source for google-authenticator.c[0] (line 156-7) it appears to use the Google Chart Infographic[1] API (whi
by oarmstrong 13y ago
It uses libpam-google-authenticator, looking at the source for google-authenticator.c[0] (line 156-7) it appears to use the Google Chart Infographic[1] API (which as a side note has been officially deprecated).
Can't quite work out how it is displaying it, I'm not competent enough with plain old C, but I'm sure someone can follow the code and chime in.
EDIT: Looks like it uses libqrencode and if that's not found it just uses Unicode block elements for actually displaying it from Google's API.
[0] http://google-authenticator.googlecode.com/git/libpam/google-authenticator.c http://google-authenticator.googlecode.com/git/libpam/google...
[1] https://developers.google.com/chart/infographics/ https://developers.google.com/chart/infographics/
- icebraining 13y agoThat's just for the URL. The QRCode in the terminal is generated locally using libqrencode and displayed using ANSI or Unicode chars, on function displayQRcode right below: https://code.google.com/p/google-authenticator/source/browse/libpam/google-authenticator.c#177 https://code.google.com/p/google-authenticator/source/browse...
- oarmstrong 13y agoJust worked that out and then saw your reply. Shouldn't have doubted myself. You're clearly more knowledgable about this than I!
- deleted 13y ago[deleted]