OAuth:...rithms(3pm)

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

✨ NAME ✨

OAuth::Lite2::Signer::Algorithms β€” it's giving signature algorithms πŸ’… (this is a Perl manual page from the User Contributed Perl Documentation, bestie, so you know it's community-made 🫢)


🌸 SYNOPSIS 🌸

my $algorithm = OAuth::Lite2::Signer::Algorithms->get_algorithm('hmac-sha256');
my $signature = $algorithm->hash($key, $text);

okay so like, two lines and you're already signing stuff?? main character energy fr πŸ”₯


πŸ’– DESCRIPTION πŸ’–

DEPRECATED. 🚨 Yeah bestie, I said what I said. This thing is an algorithm object store for OAuth 2.0 signature. It still works, it's just... in its retirement era πŸ’€

πŸŽ€ METHODS πŸŽ€

πŸ¦‹ add_algorithm( $signer )

Add a signer algorithm object, slay ✨

  • The class should be OAuth::Lite2::Signer::Algorithm or its child (so, a subclass β€” we don't do imposters here πŸ™ˆ).
  • OAuth::Lite2::Signer::Algorithm::HMAC_SHA256 is automatically added by default β€” no cap, it's already in there when you show up πŸ‘‘

🧚 get_algorithm( $algorithm_name )

Grab an algorithm object by its name, periodt πŸ’œ

my $algorithm = OAuth::Lite2::Signer::Algorithms->get_algorithm('hmac-sha256');

Like... you hand it the name, it hands you the algorithm. Iconic behaviour honestly 🌈


⭐ SEE ALSO ⭐

  • OAuth::Lite2::Signer::Algorithm
  • OAuth::Lite2::Signer::Algorithm::HMAC_SHA1
  • OAuth::Lite2::Signer::Algorithm::HMAC_SHA256

iykyk πŸ‘€ go read these next, they're the whole vibe.


πŸ‘‘ 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.


and that's the whole page bestie πŸ₯° this lil gem came from perl v5.36.0, dated 2023-07-01, so it's a certified classic πŸ’– thanks for reading, go sign something pretty ✨🫢

πŸ“¦ where this page comes from