| 1 | # FTN::Crypt::Constants - Common constants for the FTN::Crypt module | ||
| 2 | # | ||
| 3 | # Copyright (C) 2019 by Petr Antonov | ||
| 4 | # | ||
| 5 | # This library is free software; you can redistribute it and/or modify it | ||
| 6 | # under the same terms as Perl 5.10.0. For more details, see the full text | ||
| 7 | # of the licenses at https://opensource.org/licenses/Artistic-1.0, and | ||
| 8 | # http://www.gnu.org/licenses/gpl-2.0.html. | ||
| 9 | # | ||
| 10 | # This package is provided "as is" and without any express or implied | ||
| 11 | # warranties, including, without limitation, the implied warranties of | ||
| 12 | # merchantability and fitness for a particular purpose. | ||
| 13 | # | ||
| 14 | |||
| 15 | package FTN::Crypt::Constants; | ||
| 16 | |||
| 17 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 1 | ▶ | use v5.10.1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | #----------------------------------------------------------------------# | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | FTN::Crypt::Constants - Common constants for the L<FTN::Crypt> module. | ||
| 26 | |||
| 27 | =head1 SYNOPSIS | ||
| 28 | |||
| 29 | use FTN::Crypt::Constants; | ||
| 30 | |||
| 31 | $FTN::Crypt::Constants::ENC_METHODS{PGP5}; # true | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | #----------------------------------------------------------------------# | ||
| 36 | |||
| 37 | =head1 CONSTANTS | ||
| 38 | |||
| 39 | =over 4 | ||
| 40 | |||
| 41 | =item * C<%ENC_METHODS> - supported encryption methods. | ||
| 42 | |||
| 43 | =item * C<$ENC_NODELIST_FLAG> - nodelist flag. | ||
| 44 | |||
| 45 | =item * C<$ENC_MESSAGE_KLUDGE> - message encryption kludge. | ||
| 46 | |||
| 47 | =back | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | 1 | our %ENC_METHODS = ( | |
| 52 | 'PGP2' => 1, | ||
| 53 | 'PGP5' => 1, | ||
| 54 | 'GnuPG' => 1, | ||
| 55 | ); | ||
| 56 | |||
| 57 | 1 | our $ENC_NODELIST_FLAG = 'ENCRYPT'; | |
| 58 | 1 | our $ENC_MESSAGE_KLUDGE = 'ENC'; | |
| 59 | |||
| 60 | 1 | 1; | |
| 61 | __END__ | ||