OAuth:...C_SHA1(3pm)
π NAME π
okay so bestie, welcome to OAuth::Lite2::Signer::Algorithm::HMAC_SHA1 β she's the hmac-sha1 signature algorithm class, and she's here to sign your stuff. no cap. π«Ά
(it's a Perl manual page, section 3pm, in case the vibes weren't clear. iykyk.)
β¨ SYNOPSIS β¨
the whole moment, in two lines:
my $algorithm = OAuth::Lite2::Signer::Algorithm::HMAC_SHA1->new;
my $signature = $algorithm->hash($key, $text);
make the object, then hand her a $key and some $text and she gives you back a $signature. that's it. that's the whole thing. iconic behavior honestly. π
πΈ DESCRIPTION πΈ
DEPRECATED. like, for real for real. she's still here, she still works, but she's giving legacy energy and you should probably be looking elsewhere. π
she's the 'hmac-sha1' signature algorithm class. that's the whole description. short queen, no filler. π
π METHODS π
π new( )
the constructor. she's born. no arguments, no drama. you just call new and she exists. main character entrance tbh. β¨
π¦ name
returns the name of the algorithm, and the name is 'hmac-sha1'.
literally it just tells you her name. she knows who she is. we love a self-aware icon. π
π hash( $key, $text )
this one generates the signature. the actual slay. the reason we're all here.
my $signature = $algorithm->hash($key, $text);
pass in $key, pass in $text, receive $signature. obsessed. π₯
π SEE ALSO π
sibling modules, the whole friend group, go say hi:
OAuth::Lite2::Signer::AlgorithmOAuth::Lite2::Signer::AlgorithmsOAuth::Lite2::Signer::Algorithm::HMAC_SHA256β her cousin who's doing slightly better these days ngl
π AUTHOR π
Lyo Kato, <lyo.kato@gmail.com> π
π COPYRIGHT AND LICENSE π
Copyright (C) 2010 by Lyo Kato
this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
(so like, it's free, it's Perl-flavored, 5.8.8 or later, your choice. go wild but read the license fr fr. π«Ά)
and that's the page bestie!! π this whole thing is from perl v5.36.0, dated 2023-07-01, so she's a little vintage but still serving. mwah. π
β¨
π¦ where this page comes from
- debian trixie: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liboauth-lite2-perl 0.11-3 Β· 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