OAuth:...C_SHA1(3pm)

πŸ“¦
version 0.11 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::Algorithm
  • OAuth::Lite2::Signer::Algorithms
  • OAuth::Lite2::Signer::Algorithm::HMAC_SHA256 β€” her cousin who's doing slightly better these days ngl

πŸ‘‘ AUTHOR πŸ‘‘

Lyo Kato, <lyo.kato@gmail.com> πŸ’Œ


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