Net::SS...ey::RSA(3)

πŸ“¦
version 2.144 Β· 4 versions
, in fedora 44

πŸ’– 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