1Crypt::DES_EDE3(3)    User Contributed Perl Documentation   Crypt::DES_EDE3(3)
2
3
4

NAME

6       Crypt::DES_EDE3 - Triple-DES EDE encryption/decryption
7

SYNOPSIS

9           use Crypt::DES_EDE3;
10           my $ede3 = Crypt::DES_EDE3->new($key);
11           $ede3->encrypt($block);
12

DESCRIPTION

14       Crypt::DES_EDE3 implements DES-EDE3 encryption. This is triple-DES
15       encryption where an encrypt operation is encrypt-decrypt-encrypt, and
16       decrypt is decrypt-encrypt-decrypt. This implementation uses Crypt::DES
17       to do its dirty DES work, and simply provides a wrapper around that
18       module: setting up the individual DES ciphers, initializing the keys,
19       and performing the encryption/decryption steps.
20
21       DES-EDE3 encryption requires a key size of 24 bytes.
22
23       You're probably best off not using this module directly, as the encrypt
24       and decrypt methods expect 8-octet blocks. You might want to use the
25       module in conjunction with Crypt::CBC, for example. This would be
26       DES-EDE3-CBC, or triple-DES in outer CBC mode.
27

USAGE

29   $ede3 = Crypt::DES_EDE3->new($key)
30       Creates a new Crypt::DES_EDE3 object (really, a collection of three DES
31       ciphers), and initializes each cipher with part of $key, which should
32       be at least 24 bytes. If it's longer than 24 bytes, the extra bytes
33       will be ignored.
34
35       Returns the new object.
36
37   $ede3->encrypt($block)
38       Encrypts an 8-byte block of data $block using the three DES ciphers in
39       an encrypt-decrypt-encrypt operation.
40
41       Returns the encrypted block.
42
43   $ede3->decrypt($block)
44       Decrypts an 8-byte block of data $block using the three DES ciphers in
45       a decrypt-encrypt-decrypt operation.
46
47       Returns the decrypted block.
48
49   $ede3->blocksize
50       Returns the block size (8).
51
52   $ede3->keysize
53       Returns the key size (24).
54

LICENSE

56       Crypt::DES_EDE3 is free software; you may redistribute it and/or modify
57       it under the same terms as Perl itself.
58

AUTHOR & COPYRIGHTS

60       Crypt::DES_EDE3 is Copyright 2001 Benjamin Trott, ben@rhumba.pair.com.
61       All rights reserved.
62
63
64
65perl v5.34.0                      2022-01-21                Crypt::DES_EDE3(3)
Impressum