| 1 |
Module Crypt::ECB |
| 2 |
----------------- |
| 3 |
|
| 4 |
DESCRIPTION |
| 5 |
|
| 6 |
This module is a Perl-only implementation of the ECB mode. In |
| 7 |
combination with a block cipher such as DES, IDEA or Blowfish, you can |
| 8 |
encrypt and decrypt messages of arbitrarily long length. Though for |
| 9 |
security reasons other modes than ECB such as CBC should be preferred. |
| 10 |
See textbooks on cryptography if you want to know why. |
| 11 |
|
| 12 |
The functionality of the module can be accessed via OO methods or via |
| 13 |
standard function calls. Remember that some crypting module like for |
| 14 |
example Blowfish has to be installed. The syntax follows that of |
| 15 |
Crypt::CBC. |
| 16 |
|
| 17 |
|
| 18 |
INSTALLATION |
| 19 |
|
| 20 |
To install, just type |
| 21 |
|
| 22 |
perl Makefile.PL |
| 23 |
make |
| 24 |
make test |
| 25 |
make install |
| 26 |
|
| 27 |
If you are on a MS system, you possibly won't have make. But don't |
| 28 |
worry, installation is trivial as there is nothing to be compiled: |
| 29 |
Just create a directory 'Crypt' in Perl's libpath if not existing. Then |
| 30 |
copy 'ECB.pm' to that directory, that's all. Perl's libpath will be |
| 31 |
something like 'c:\perl\site\lib'. |
| 32 |
|
| 33 |
|
| 34 |
UPGRADING |
| 35 |
|
| 36 |
Eight years after the last release I thought it was okay to make a major |
| 37 |
upgrade. Which makes subtle changes to the API. So, if you are upgrading |
| 38 |
from a version below 2.00, be aware that the API has changed: |
| 39 |
|
| 40 |
- The caching feature is no longer available. Contact me if you really |
| 41 |
think you need it. |
| 42 |
|
| 43 |
- As I thought that exporting global constants isn't that nice and also |
| 44 |
in order to be more compatible with Crypt::CBC I changed the way that |
| 45 |
padding() is called: |
| 46 |
|
| 47 |
$ecb->padding(PADDING_AUTO) should be replaced by $ecb->padding('standard') |
| 48 |
(or could be omitted, because this is the default for Crypt-ECB-2.00 and |
| 49 |
later). |
| 50 |
|
| 51 |
$ecb->padding(PADDING_NONE) should be replaced by $ecb->padding('none'). |
| 52 |
$ecb->padding('none') is also needed if no padding was specified, because |
| 53 |
no padding was the default for versions before v2.00. |
| 54 |
|
| 55 |
- Exception handling is more perl-like. Crypt::ECB now dies when stumbling |
| 56 |
over errors. If you don't want that, catch it with an eval. |
| 57 |
|
| 58 |
|
| 59 |
COPYING |
| 60 |
|
| 61 |
Crypt-ECB is Copyright (C) 2000, 2005, 2008, 2016 by Christoph Appel. |
| 62 |
|
| 63 |
This module is distributed using the same terms as Perl itself. It is free |
| 64 |
software; you can redistribute it and/or modify it under the terms of either: |
| 65 |
|
| 66 |
a) the GNU General Public License as published by the Free Software |
| 67 |
Foundation; either version 1, or (at your option) any later version, or |
| 68 |
|
| 69 |
b) the "Artistic License". |
| 70 |
|