Skip to content

misc general

Marcel Schmalzl edited this page Mar 21, 2024 · 3 revisions

Yubikey

Yubikey as Smartcard | Windows

"Windows Hello" compatible YubiKey's are can be found here.

  1. Administrative Templates > Windows Components > Microsoft Secondary Authentification > Allow companion device for secondary authentification
  2. Administrative Templates > System > Logon > Turn on convenience PIN sign-in
  3. Set PIN in Settings > Sign-in options > PIN add
  4. Install "YubiKey for Windows Hello"
  5. Register your YubiKey in the app

QR Codes

  • Standard: ISO/IEC 18004
  • Error correction
    • Series of error correction codewords which are added to the data codeword sequence.
    • Levels: L (7%) -> M (15%) -> Q (25%) -> H (30%)
      • % of restorable codewords
  • Modes
    • Numeric (digits 0-9)
    • Alphanumeric (digits 0-9; letters A-Z; space,$%*+-./:)
    • “Binary“ (JIS 8-bit character set (Latinand Kana) in accordance with JIS X 0201)
    • Kanji (Chinese letters; JIS X 0208)
  • Quiet Zone
    • “This is a region 4X wide which shall be free of all other markings, surrounding the symbol on all four sides. Its nominal reflectance value shall be equal to that of the light modules.” (recommendation from ISO 18004, X: width of a dark module)

Types (prefixes)

Type Tag
URL Prefix protoclol like https:// or URLTO:google.com
E-mail mailto:
Add more: mailto:holzkohlengrill@github.io?cc=users@gmail.com,guyCCed2@gmail.com&bcc=secretperson@gmail.com&subject=htmlencodedstring&body=htmlencodedbody
Phone number tel:
SMS sms: or sms:<phone-number>This:text
vCard no prefix: see here
iCal no prefix: see here
Wifi WIFI:T:<WPA or WEP>;S:<network ssid>;P:<password>;;, escape (\) special chars
Geo location geo:lat,long,alt

Generation (encoding)

Install (if you prefer a GUI use qtqr):

$ sudo pacman -S qrencode

qrencode always generates RAW data qr codes. In order to get certain types (phone numbers, vcards, ...) just add a prefix like:

$ qrencode -s 7 -o qrcode.png 'tel:'

Oftentimes the generated QR-codes are to small. Therefore we use the size option (-s 7) with seven dots per pixel which leads to satisfying results.

Readout (decoding)

james-qr.png:

james bond qr code
$ zbarimg james-qr.png
QR-Code:BEGIN:VCARD
VERSION:2.1
N:James Bond
TEL;HOME;VOICE: 0800 789 321
EMAIL:james@sis.gov.uk
ORG:SIS
TITLE:Intelligence Officer
BDAY:19201111
ADR:85 Albert Embankment, London SE1 7TP, UK
URL:https://sis.gov.uk
END:VCARD
scanned 1 barcode symbols from 1 images in 0.33 seconds

Additional Ressources:

Bit Fiddling/Operations

https://graphics.stanford.edu/%7Eseander/bithacks.html

Clone this wiki locally