OAuth:...gorithm(3pm)
β¨ NAME β¨
OAuth::Lite2::Signer::Algorithm β it's the signature algorithm base class, bestie. And yes, this page lives in section 3pm of the manual (the header says OAuth:...gorithm(3pm) because the title got squished, iykyk). π
πΈ SYNOPSIS πΈ
Okay so here's the vibe: you don't use this class directly, you make a child class that inherits from it. Like this:
package OAuth::Lite2::Signer::Algorithm::Foo;
use parent 'OAuth::Lite2::Signer::Algorithm';
sub hash {
# override
}
1;
And then you use it through the hash method interface, like:
my $algorithm = OAuth::Lite2::Signer::Algorithm::Foo->new;
my $signature = $algorithm->hash($key, $text);
That's it. That's the whole flow. π¦
π DESCRIPTION π
DEPRECATED. Not me having to tell you this β it's literally the signature algorithm base class, but it's deprecated. So like, keep that in mind, okay? π
π METHODS π
new( )β the constructor. Makes you a fresh object, main character energy. β¨nameβ hands you back a name of the algorithm. Simple as that. π«Άhash( $key, $text )β this one generates the signature for you, no cap:
my $signature = $algorithm->hash($key, $text);
π SEE ALSO π
OAuth::Lite2::Signer::AlgorithmsOAuth::Lite2::Signer::Algorithm::HMAC_SHA1OAuth::Lite2::Signer::Algorithm::HMAC_SHA256
Go read those too, they're the supporting cast and they ate. π
π 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.
And that's a wrap, bestie! π§ This lil' page was generated by perl v5.36.0 on 2023-07-01, and the manual name up top is OAuth:...gorithm(3pm). Slay, go sign some stuff. πβ¨
π¦ 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