File: README

package info (click to toggle)
libcrypt-ecb-perl 2.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 216 kB
  • sloc: perl: 822; makefile: 2
file content (70 lines) | stat: -rwxr-xr-x 2,365 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Module Crypt::ECB
-----------------

DESCRIPTION

This module is a Perl-only implementation of the ECB mode. In
combination with a block cipher such as DES, IDEA or Blowfish, you can
encrypt and decrypt messages of arbitrarily long length. Though for
security reasons other modes than ECB such as CBC should be preferred.
See textbooks on cryptography if you want to know why.

The functionality of the module can be accessed via OO methods or via
standard function calls. Remember that some crypting module like for
example Blowfish has to be installed. The syntax follows that of
Crypt::CBC.


INSTALLATION

To install, just type

perl Makefile.PL
make
make test
make install

If you are on a MS system, you possibly won't have make. But don't
worry, installation is trivial as there is nothing to be compiled:
Just create a directory 'Crypt' in Perl's libpath if not existing. Then
copy 'ECB.pm' to that directory, that's all. Perl's libpath will be
something like 'c:\perl\site\lib'.


UPGRADING

Eight years after the last release I thought it was okay to make a major
upgrade. Which makes subtle changes to the API. So, if you are upgrading
from a version below 2.00, be aware that the API has changed:

- The caching feature is no longer available. Contact me if you really
think you need it.

- As I thought that exporting global constants isn't that nice and also
in order to be more compatible with Crypt::CBC I changed the way that
padding() is called:

$ecb->padding(PADDING_AUTO) should be replaced by $ecb->padding('standard')
(or could be omitted, because this is the default for Crypt-ECB-2.00 and
later).

$ecb->padding(PADDING_NONE) should be replaced by $ecb->padding('none').
$ecb->padding('none') is also needed if no padding was specified, because
no padding was the default for versions before v2.00.

- Exception handling is more perl-like. Crypt::ECB now dies when stumbling
over errors. If you don't want that, catch it with an eval.


COPYING

Crypt-ECB is Copyright (C) 2000, 2005, 2008, 2016 by Christoph Appel.

This module is distributed using the same terms as Perl itself. It is free
software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software
Foundation; either version 1, or (at your option) any later version, or

b) the "Artistic License".