320 links
  • Sbgodin
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
  • Linux script to emulate the Yubikey hmac-sha1
    The challenge-response mode of the Yubikey transforms a password into another one using the hmac-sha1 algorithm, with a (secret) key stored inside.
    This is the command line way, using openssl. The result is the same as that of yubikey-personalization-gui.

    #!/bin/sh
    echo -n "challenge: " ; read challenge
    echo -n "hexkey: " ; read hexkey
    echo
    echo $challenge
    echo -n "$challenge" | openssl dgst -sha1 -mac HMAC -macopt hexkey:$(echo "$hexkey" | tr -d ' ') | sed 's#^(stdin)= ##'
    Thu 08 Nov 2018 04:39:42 PM CET - permalink -
    QRCode
    - https://shaarli.sbgodin.fr/?E68-Rw
    en hack info yubikey
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation