Net::SS...ey::RSA(3)
π Net::SSH::Perl::Key::RSA β the RSA key object page π
okay so bestie, this is the manual page for Net::SSH::Perl::Key::RSA, from the User Contributed Perl Documentation section (yes the header is literally Net::SS...ey::RSA(3) and it's giving β¨abbreviatedβ¨, we love her anyway).
πΈ NAME πΈ
Net::SSH::Perl::Key::RSA β it's an RSA key object, no cap π
β¨ SYNOPSIS β¨
use Net::SSH::Perl::Key;
my $key = Net::SSH::Perl::Key->new('RSA');
that's it. that's the whole vibe. two lines and you're a cryptographer π
π¦ DESCRIPTION π¦
So Net::SSH::Perl::Key::RSA subclasses Net::SSH::Perl::Key to implement a key object, SSH style. Iconic behavior, honestly.
This object hands you all of the methods needed for a RSA key object β the underlying implementation is provided by Crypt::PK::RSA, and this class wraps around that module to provide SSH-specific functionality (like, for example, taking in a Net::SSH::Perl::Buffer blob and transforming it into a key object β¨). glow-up from blob to key, we love a transformation arc π¦
π USAGE π
Net::SSH::Perl::Key::RSA implements the interface described in the documentation for Net::SSH::Perl::Key. Any differences or additions are described here. so like, read the parent page too, iykyk π«Ά
π₯ $key->sign($data)
Uses Crypt::PK::RSA (the CryptX module, bestie, that one) to sign $data using the private key portion of $key, then encodes that signature into an SSH-compatible signature blob.
Returns the signature blob. periodt π
π $key->verify($signature, $data)
Given a signature blob $signature and the original signed data $data, it attempts to verify the signature using the public key portion of $key. This uses Crypt::PK::RSA::verify_message to perform the core verification β that's the engine room, she's doing the heavy lifting π§
$signature should be an SSH-compatible signature blob, as returned from sign; $data should be a string of data, as passed to sign. (keep the pair matched, girlies, don't be out here verifying against the wrong string π)
Returns true if the verification succeeds, false otherwise. slay or no slay, nothing in between β¨
π AUTHOR & COPYRIGHTS π
Please see the Net::SSH::Perl manpage for author, copyright, and license information. (that's the receipts, go check her out π)
and that's the whole page, bestie!! ππ π¦
cute lil sign-off for the footer: this page was rendered by perl v5.42.0, dated 2026-01-17, filed under Net::SS...ey::RSA(3) β go forth and sign responsibly, mwah ππΈ
π¦ where this page comes from
- fedora 44: perl-Net-SSH-Perl 2.144-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms