FTN::Crypt - Encryption of the FTN messages.
0.5.1
use FTN::Crypt; my $obj = FTN::Crypt->new( Nodelist => 'NODELIST.*', Pointlist => [ 'pointlist_1.*', 'pointlist_2', ], ) or die FTN::Crypt->error; $obj->encrypt_message( Address => $ftn_address, Message => $msg, ) or die $obj->error;
The possibility of FTN netmail encryption may be sometimes a useful option. Corresponding nodelist flag was proposed in FSC-0073.
Although current FidoNet Policy (version 4.07 dated June 9, 1989) clearly forbids routing of encrypted traffic without the express permission of all the links in the delivery system, it's still possible to deliver such messages directly. And, obviously, such routing may be allowed in FTN networks other than FidoNet.
The proposed nodelist userflag is ENCRYPT:[TYPE], where [TYPE] is one of 'PGP2', 'PGP5', 'GnuPG'. So encryption-capable node should have something like U,ENCRYPT:PGP5 in his nodelist record.
Constructor.
Nodelist: Path to nodelist file(s), either scalar or arrayref. If contains wildcard, file with maximum number in digital extension will be selected.
Nodelist
Optional Pointlist: Path to pointlist file(s), either scalar or arrayref. If contains wildcard, file with maximum number in digital extension will be selected.
Pointlist
Optional Keyserver Keyserver (defaults to 'https://zimmermann.mayfirst.org/pks/lookup').
Keyserver
Optional Pubring Public keyring file.
Pubring
Optional Secring Secret keyring file.
Secring
Created object or error in FTN::Crypt->error.
FTN::Crypt->error
Sample:
my $obj = FTN::Crypt->new( Nodelist => 'NODELIST.*', Pointlist => [ 'pointlist_1.*', 'pointlist_2', ], ) or die FTN::Crypt->error;
Message encryption.
Address: Recipient's FTN address.
Address
Message: FTN message text with kludges.
Message
Encrypted message or error in $obj->error.
$obj->error
my $res = $obj->encrypt_message( Address => $ftn_address, Message => $msg, ) or die $obj->error;
Message decryption.
Passphrase: Key passphrase.
Passphrase
Decrypted message or error in $obj->error.
my $res = $obj->decrypt_message( Address => $ftn_address, Message => $msg, Passphrase => $pass, ) or die $obj->error;
Petr Antonov, <pietro@cpan.org>
Copyright (C) 2019 by Petr Antonov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses at https://opensource.org/licenses/Artistic-1.0, and http://www.gnu.org/licenses/gpl-2.0.html.
This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.
Using cpan:
cpan
$ cpan FTN::Crypt
Manual install:
$ perl Makefile.PL $ make $ make test $ make install
To install FTN::Crypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FTN::Crypt
CPAN shell
perl -MCPAN -e shell install FTN::Crypt
For more information on module installation, please visit the detailed CPAN module installation guide.