Net::SS...r::DES3(3)
π NAME π
Net::SSH::Perl::Cipher::DES3 β bestie, it's the wrapper that gives you SSH 3DES support. That's it, that's the job. π
(also hey, this is page Net::SS...r::DES3(3) from the User Contributed Perl Documentation section, just so you know where you are π«Ά)
β¨ SYNOPSIS β¨
okay so here's the whole vibe in four lines, no notes:
use Net::SSH::Perl::Cipher;
my $cipher = Net::SSH::Perl::Cipher->new('DES3', $key);
print $cipher->encrypt($plaintext);
that's it. that's the whole thing. iconic. πΈ
π¦ DESCRIPTION π¦
so Net::SSH::Perl::Cipher::DES3 is out here providing 3DES encryption support for Net::SSH::Perl. and the way it does that? it wraps around Crypt::Cipher::DES, which is the CryptX implementation of the DES algorithm. slay. β¨
now listen, the 3DES (three-key triple-DES) algorithm used here is lowkey different depending on which SSH protocol you're running. not me having two whole personalities. π
- SSH1 uses 3DES in inner CBC mode. what does that mean bestie? it means there are three CBC objects, and each CBC object is paired with a DES object and a key. three of everything. a whole trio. π
- SSH2 uses 3DES in outer CBC mode. this one uses one CBC object wrapped around a
DES-EDE3object (also included in this library, don't worry she's in there), and that object contains three DES ciphers with three different keys. so every single encrypt operation is literally encrypt-decrypt-encrypt with the three DES keys, and decrypt is literally decrypt-encrypt-decrypt with the DES keys. it's giving choreography. π
now for the tea on keys: the key length for both implementations is 24 bytes. the first 8 bytes of the key get used as the first DES key, the second 8 bytes for the second key, etc. etc. etc. π
but wait β plot twist π β if the key$keyyou pass tonewis only 16 bytes, then the first 8 bytes of$keyget used as the key for both the first and third DES ciphers. she's recycling. we love a sustainable queen. β»οΈ
π AUTHOR & COPYRIGHTS π
pls go read the Net::SSH::Perl manpage for all the author, copyright, and license info, because that's where the receipts live. i'm just the messenger. π«Ά
and that's the page bestie!! π this little gem is from perl v5.42.0, dated 2026-01-17, and it's part of the User Contributed Perl Documentation. go forth and encrypt 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