| 1 |
$Id |
| 2 |
|
| 3 |
-------- |
| 4 |
Abstract |
| 5 |
-------- |
| 6 |
|
| 7 |
Crypt::GCrypt provides a Perl interface to the libgcrypt cryptographic |
| 8 |
functions. It currently supports symmetric ciphers such as AES/Rikndael, |
| 9 |
Twofish, Triple DES, Arcfour etc., while asymmetric cryptography is being |
| 10 |
developed. |
| 11 |
|
| 12 |
------------ |
| 13 |
Requirements |
| 14 |
------------ |
| 15 |
|
| 16 |
Crypt::GCrypt requires that libgcrypt is installed on your system. You can |
| 17 |
use your favourite package manager or download the latest version of libgcrypt |
| 18 |
at the GNU site: |
| 19 |
|
| 20 |
ftp://ftp.gnupg.org/gcrypt/libgcrypt/ |
| 21 |
|
| 22 |
and then you can install it just doing: |
| 23 |
|
| 24 |
$ ./configure |
| 25 |
$ make |
| 26 |
# make install |
| 27 |
|
| 28 |
Crypt::GCrypt was tested with libgcrypt 1.2.4. |
| 29 |
|
| 30 |
If libgcrypt is installed, but in a non-standard directory, then use the |
| 31 |
following options to Makefile.PL: |
| 32 |
|
| 33 |
GCRYPTLIBPATH=... To set the directory in which to find libgcrypt |
| 34 |
GCRYPTINCPATH=... To set the directory in which to find gcrypt.h |
| 35 |
|
| 36 |
For example: |
| 37 |
perl Makefile.PL GCRYPTLIBPATH=/home/me/lib GCRYPTINCPATH=/home/me/include |
| 38 |
|
| 39 |
Note that if you build against a shareable library in a non-standard location |
| 40 |
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment |
| 41 |
variable at run time for perl to find the library. |
| 42 |
|
| 43 |
------------------ |
| 44 |
Basic Installation |
| 45 |
------------------ |
| 46 |
|
| 47 |
Crypt::GCrypt may be installed through the CPAN shell in |
| 48 |
the usual manner. Typically: |
| 49 |
|
| 50 |
$ perl -MCPAN -e 'install Crypt::GCrypt' |
| 51 |
|
| 52 |
You can also read this README from the CPAN shell: |
| 53 |
|
| 54 |
$ perl -MCPAN -e shell |
| 55 |
cpan> readme Crypt::GCrypt |
| 56 |
|
| 57 |
And you can install the component from the CPAN prompt as well: |
| 58 |
|
| 59 |
cpan> install Crypt::GCrypt |
| 60 |
|
| 61 |
------------------- |
| 62 |
Manual Installation |
| 63 |
------------------- |
| 64 |
|
| 65 |
This module may also be installed manually. Its distribution is |
| 66 |
available from the author's CPAN directory, |
| 67 |
<ftp://ftp.cpan.org/pub/CPAN/authors/id/A/AA/AAR/>, or a similarly |
| 68 |
named directory at your favorite CPAN mirror. |
| 69 |
|
| 70 |
Downloading and unpacking the distribution are left as exercises for |
| 71 |
the reader. To build and test it: |
| 72 |
|
| 73 |
perl Makefile.PL |
| 74 |
make test |
| 75 |
|
| 76 |
When you're ready to install the component: |
| 77 |
|
| 78 |
make install |
| 79 |
|
| 80 |
It should now be ready to use. |
| 81 |
|
| 82 |
Thanks for reading! |
| 83 |
|
| 84 |
-- Alessandro Ranellucci / [email protected] / http://alex.primafila.net |