Net::SS...:Kex::DH(3)

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

πŸ’– Net::SS...:Kex::DH(3) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation section, we're looking at Net::SS...:Kex::DH(3) today and honestly? she's a vibe. πŸ¦‹


✨ NAME ✨

Net::SSH::Perl::Kex::DH β€” Diffie-Hellman Group Agnostic Key Exchange πŸ’…


🌸 SYNOPSIS 🌸

not me giving you the whole rundown up top β€” read this carefully, it's literally the whole point of the class 🫢
# This class should not be used directly, but rather as a base for DH1,
# DH14SHA1, DH16SHA512, etc

use Net::SSH::Perl::Kex::DH;
use base qw( Net::SSH::Perl::Kex::DH );

# Simply implement _dh_new_group and return the Crypt::DH group
sub _dh_new_group {
    my $kex = shift;
    ...
    $dh;
}

like… she is a base class, okay? she's not here to do the work herself, she's here so the other girls (DH1, DH14SHA1, DH16SHA512, etc β€” you know the ones) can pop off. πŸ‘‘


🌈 DESCRIPTION 🌈

so. Net::SSH::Perl::Kex::DH implements Diffie-Hellman Group Agnostic Exchange for Net::SSH::Perl. and yes she is a subclass of Net::SSH::Perl::Kex β€” family tree matters, periodt. πŸŽ€

Key Exchange uses the Diffie-Hellman key exchange algorithm to produce a shared secret key between client and server, and the way it does that without ever sending the shared secret over the insecure network? iconic. literally iconic. 😭

all that actually gets sent are the client and server public keys. that's it. that's the whole slay. the secret stays home, the public keys go on tour. ✨


🧚 AUTHOR & COPYRIGHTS 🧚

Please see the Net::SSH::Perl manpage for author, copyright, and license information. πŸ’œ

bestie I know you want the tea on who wrote this and what the license is β€” go check Net::SSH::Perl, she has all of it, no cap. πŸ™ˆ

and that's the whole page!! πŸŽ‰ this one was rendered by perl v5.42.0 and it's dated 2026-01-17, so shoutout to the toolchain for keeping her cute and current. mwah, go read the parent manpage. πŸ’–πŸŒΈπŸ¦‹β­πŸ“

πŸ“¦ where this page comes from