OAuth:...SHA256(3pm)

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

πŸ’– OAuth::Lite2::Signer::Algorithm::HMAC_SHA256 πŸ’–

okay bestie, welcome to the OAuth:...SHA256(3pm) page β€” yes that's the manual name, it's giving abbreviated-and-iconic, we love her. This is a User Contributed Perl Documentation situation, section 3pm, so buckle up πŸŽ€


✨ NAME ✨

OAuth::Lite2::Signer::Algorithm::HMAC_SHA256 β€” the hmac-sha256 signature algorithm class, and she is exactly what it says on the tin 🫢


✨ SYNOPSIS ✨

no thoughts, just vibes and these two lines:

my $algorithm = OAuth::Lite2::Signer::Algorithm::HMAC_SHA256->new;
my $signature = $algorithm->hash($key, $text);

✨ DESCRIPTION ✨

DEPRECATED. 🚨 bestie I need you to read that again. It's the 'hmac-sha256' signature algorithm class, and it is deprecated β€” so like, know her, respect her, but maybe don't build your whole personality around her, yk? πŸ‘‘


✨ METHODS ✨

🌸 new( )

Constructor. She's born. That's it, that's the method ✨

🌸 name

Returns a name of the algorithm, 'hmac-sha256'. Literally just tells you her name like a main character introducing herself πŸ’…

🌸 hash( $key, $text )

Generate signature. Two args: $key and $text β€” feed her those and she gives you a signature πŸ¦‹

my $signature = $algorithm->hash($key, $text);

✨ SEE ALSO ✨

  • OAuth::Lite2::Signer::Algorithm
  • OAuth::Lite2::Signer::Algorithms
  • OAuth::Lite2::Signer::Algorithm::HMAC_SHA1

the whole friend group, fr fr 🌈


✨ AUTHOR ✨

Lyo Kato, <lyo.kato@gmail.com> β€” shoutout to the author, absolute legend for this one πŸ‘‘


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.

like, genuinely free, no cap 🫢


reminder bestie: this page is DEPRECATED, so keep that in mind before you commit to her, okay? mwah πŸ’‹

and that's the whole page! this version of OAuth:...SHA256(3pm) came from perl v5.36.0, dated 2023-07-01 β€” slay, periodt, go forth and sign things πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from