YKPARSE(1)

πŸ’– YKPARSE(1) β€” the YubiKey C Library Manual, bestie edition πŸ’–

okay so real talk: this page lives in the YubiKey C Library Manual and it's filed under YKPARSE(1), but the command it actually tells you about is ykgenerate. iconic of her, honestly. no notes. πŸ’…


✨ NAME ✨

ykgenerate β€” construct and encrypt an OTP from given data. that's the whole job. she builds it, she encrypts it, she serves. πŸŽ€


🌸 SYNOPSIS 🌸

ykgenerate AESKEY YK_INTERNALNAME YK_COUNTER YK_LOW YK_HIGH YK_USE

six little arguments, one big slay. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically ykgenerate generates OTPs by encrypting the values you hand it, using the encryption key you hand it. that's it. that's the vibe. you give her the goods, she encrypts them, you get an OTP. πŸ’–


πŸ’… OPTIONS πŸ’…

every single one of these is hex encoded, bestie. do not come in here with vibes instead of hex. πŸ™ˆ

  • AESKEY β€” the 16-character AES-128 key you're gonna use, in hex. sixteen. characters. count them. 🫢
  • YK_INTERNALNAME β€” the internal identity, hex encoded. it's 48 bit.
  • YK_COUNTER β€” the counter, hex encoded. 16 bit.
  • YK_LOW β€” the timestamp low, hex encoded. 16 bit.
  • YK_HIGH β€” the timestamp high, hex encoded. 8bit.
  • YK_USE β€” the use, hex encoded. 8 bit.
ngl the bit-widths are giving "please get them right" energy. they're right there in the list, use them. πŸ’€

🌈 EXAMPLES 🌈

typical usage of the tool is literally this, fr fr:

ykgenerate ecde18dbe76fbd0c33330f1c354871db 8792ebfe26cc 0013 c0a8 00 10

and then β€” and this is the part where you feel like a hacker in a movie β€” you use ykparse(1) to decode the resulting OTP. πŸ•΅οΈβ™€οΈβœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

YubiKeys can be obtained from Yubico: http://www.yubico.com/ β€” go get you one, main character. πŸ›οΈπŸ’–


and that's the whole page, bestie!! this lil manual came from yubico-c, Version 1.13 β€” so when you're out here generating OTPs, just know version 1.13 of yubico-c is the one holding your hand through it. πŸ«ΆπŸŽ€πŸ’œ mwah, go slay. ⭐