• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangesH A D01-May-2018692 2816

MANIFESTH A D01-May-2018256 1413

META.jsonH A D01-May-2018869 4140

META.ymlH A D01-May-2018513 2322

Makefile.PLH A D23-Apr-20181.9 KiB8871

READMEH A D01-May-20182.2 KiB7150

TEA.pmH A D01-May-20182.8 KiB13630

TEA.xsH A D23-Apr-20181.4 KiB7155

_tea.cH A D23-Apr-20181.9 KiB7653

ppport.hH A D23-Apr-20187.6 KiB287112

tea.hH A D23-Apr-2018409 2314

test.plH A D23-Apr-20181.9 KiB8665

typemapH A D23-Apr-201820 21

README

1NAME
2    Crypt::TEA - Tiny Encryption Algorithm
3
4SYNOPSIS
5    use Crypt::TEA;
6
7    $cipher = Crypt::TEA->new($key);
8
9    $ciphertext = $cipher->encrypt($plaintext);
10
11    $plaintext = $cipher->decrypt($ciphertext);
12
13DESCRIPTION
14    TEA is a 64-bit symmetric block cipher with a 128-bit key
15    and a variable number of rounds (32 is recommended). It has a
16    low setup time, and depends on a large number of rounds for
17    security, rather than a complex algorithm. It was developed
18    by David J. Wheeler and Roger M. Needham, and is described at
19    https://web-beta.archive.org/web/20131226114205/http://www.ftp.cl.cam.ac.uk:80/ftp/papers/djw-rmn/djw-rmn-tea.html
20
21    This module implements TEA encryption. It supports the Crypt::CBC
22    interface, with the following functions.
23
24  Functions
25
26    blocksize
27        Returns the size (in bytes) of the block (8, in this case).
28
29    keysize
30        Returns the size (in bytes) of the key (16, in this case).
31
32    new($key, $rounds)
33        This creates a new Crypt::TEA object with the specified
34        key. The optional rounds parameter specifies the number of
35        rounds of encryption to perform, and defaults to 32.
36
37    encrypt($data)
38        Encrypts blocksize() bytes of $data and returns the
39        corresponding ciphertext.
40
41    decrypt($data)
42        Decrypts blocksize() bytes of $data and returns the
43        corresponding plaintext.
44
45SEE ALSO
46    https://web-beta.archive.org/web/20030208020932/http://www.vader.brad.ac.uk/tea/tea.shtml
47
48    Crypt::CBC, Crypt::Blowfish, Crypt::DES
49
50ACKNOWLEDGEMENTS
51    Dave Paris
52        For taking the time to discuss and review the initial
53        version of this module, making several useful suggestions,
54        and contributing tests.
55
56    Mike Blazer and Gil Cohen
57        For testing under Windows.
58
59    Tony Cook
60        For making the module work under Activeperl, testing on
61        several platforms, and suggesting that I probe for features
62        via %Config.
63
64AUTHOR
65    Abhijit Menon-Sen <ams@toroid.org>
66
67    Copyright 2001 Abhijit Menon-Sen. All rights reserved.
68
69    This software is distributed under the terms of the Artistic
70    License https://dev.perl.org/licenses/artistic.html
71