Auth::...crypter(3pm)
π NAME π
Auth::Yubikey_Decrypter β bestie, this is the thing that decrypts the output from your yubikey token. That's it. That's the whole job. β¨
(also it lives in the User Contributed Perl Documentation section, if u were wondering where to find it π«Ά)
πΈ VERSION πΈ
Version 0.07 β she's a lil vintage, ok, we love her anyway π
π SYNOPSIS π
okay so listen. this decryption module does literally ONE thing β it decrypts the AES encrypted OTP from the Yubikey. no notes. to do that, it needs two things: the OTP, and the AES key. that's the whole shopping list π
β οΈ IMPORTANT BESTIE β this module does NOT do authentication. it is not that girl. it's just a required component so u can decrypt the token first, before authentication can even happen. decryption β authentication, they're different steps, don't @ me π
#!/usr/bin/perl
use strict;
use Auth::Yubikey_Decrypter;
my $fulltoken = "dteffujehknhfjbrjnlnldnhcujvddbikngjrtgh";
my $aeskey = "ecde18dbe76fbd0c33330f1c354871db";
my ($publicID,$secretid_hex,$counter_dec,$timestamp_dec,$session_use_dec,$random_dec,$crc_dec,$crc_ok) =
Auth::Yubikey_Decrypter::yubikey_decrypt($fulltoken,$aeskey);
print "publicID : $publicID\n";
print "Secret id : $secretid_hex\n";
print "Counter : $counter_dec\n";
print "Timestamp : $timestamp_dec\n";
print "Session : $session_use_dec\n";
print "Random : $random_dec\n";
print "crc : $crc_dec\n";
print "crc ok? : $crc_ok\n";
β FUNCTIONS β
π¦ yubikey_decrypt
Input: token, aeskey π
- Token β what u received from the Yubikey π
- aeskey β either the modhex or hex AES key for your Yubikey. and like, if u don't have the AES key?? go contact Yubico, bestie, they got u π
Output:
$publicID $secretid_hex $counter_dec $timestamp_dec $session_use_dec $random_dec $crc_dec $crc_ok
look at that lil roster of return values. eight of them. iconic. β¨
π§ yubikey_modhex_decode
Input: the modhex code β Output: decoded modhex code in hex π
π yubikey_crc_check
performs a crc check on the decoded data β that's the whole vibe
π REQUIRES π
- Perl 5
Crypt::Rijndael
also!! order your Yubikey from <http://www.yubico.com> ποΈ (yes that's in the original docs, no i'm not making it up, it's just there, living its life)
π BUGS π
found a bug? a feature request stirring in your heart? please report it to bug-auth-yubikey_decrypter at rt.cpan.org, or slide through the web interface at:
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Auth-Yubikey_Decrypter>
and the way this works is: I get notified, and then you automatically get notified of progress on your bug as I make changes. mutual notification situation. we're in this together fr fr π«Ά
π SUPPORT π
u can find documentation for this module with the perldoc command, like so:
perldoc Auth::Yubikey_Decrypter
u can also look for information at these spots π
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Auth-Yubikey_Decrypter>
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Auth-Yubikey_Decrypter>
- CPAN Ratings
<http://cpanratings.perl.org/d/Auth-Yubikey_Decrypter>
- Search CPAN
<http://search.cpan.org/dist/Auth-Yubikey_Decrypter>
π AUTHOR π
Phil Massyn, <phil at massyn.net> β the main character who wrote this π
π ACKNOWLEDGEMENTS π
- Based a lot on PHP code by: PHP yubikey decryptor v0.1 by Alex Skov Jensen
- Thanks to almut from <http://perlmonks.org> for code guidance π
- Thanks to Mark Foobar <http://blog.maniac.nl> for reporting the
-32bug on line91and92π (we love a bug reporter, truly the backbone of open source)
π COPYRIGHT & LICENSE π
Copyright 2008 Phil Massyn, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie!! this lil beauty is Auth::...crypter(3pm) from perl v5.32.0, dated 2021-01-08 ποΈβ¨ go decrypt something responsibly, ily, bye ππ¦πΈ
π¦ where this page comes from
- debian bookworm: libauth-yubikey-decrypter-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libauth-yubikey-decrypter-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libauth-yubikey-decrypter-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libauth-yubikey-decrypter-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libauth-yubikey-decrypter-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libauth-yubikey-decrypter-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms