Sponsored Content
Top Forums Shell Programming and Scripting configure php with mcrypt support Post 302245885 by otheus on Saturday 11th of October 2008 01:03:00 PM
Old 10-11-2008
Hrm. Check configure.log and see if the command used to compile included something like -L/opt/mcrypt-.../lib. If not, override the LDFLAGS or LDLIBS on the configure line.

./configure ... LDFLAGS=/opt/mcrypt-.../lib

Of course, this is assuming you did install mcrypt inside /opt.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

enable php & java support in apache

Hello guys, I am in desperate need for this information: I have an apache server running on linux (suse 8.1) I am unable to run php or java code on it, and I wonder what is wrong. for the php case, the browser asks me how he should treat the file, namely download it to my local drive or... (5 Replies)
Discussion started by: bionicfysh
5 Replies

2. UNIX for Advanced & Expert Users

Upgrade PHP (LAMP) to support cURL. Anyone?

Has anyone who is running linux-apache-mysql-php (LAMP) ever upgraded their PHP configuration (in a working environment) to support cURL? If you have, please post the easiest way to do it without adversely effecting the other parts of the LAMP configuration. Thanks! (1 Reply)
Discussion started by: Neo
1 Replies

3. UNIX for Dummies Questions & Answers

XML support

Does Unix or Linux support XML (1 Reply)
Discussion started by: usha4u
1 Replies

4. UNIX for Advanced & Expert Users

configure php with postgresql and apache

Hi, I'm trying to configure php4 to run alongside postgresql and apache. Postgres and apache are already installed and running, but I am getting an error when doing: host84:~/php-4.4.9#./configure --with-apache=/usr/local/apache --with-postgresql=/usr/local/pgsql loading cache ./config.cache... (5 Replies)
Discussion started by: sdbeng
5 Replies

5. Solaris

mcrypt module is not initially loaded with php

Hi I'm trying to do an upgrade for one application and whenever I run the upgradre the program shows the error that mcrypt module is not initially loaded with php. My server is running xampp 0.9 and I know this library of mcrypt is already installed. I changed the php.ini file in order to... (0 Replies)
Discussion started by: dahr
0 Replies

6. Linux

How To Install and configure Mysql for CRM with PHP

Hi , I have tired several times and tried a lot to install CRM in Centos Linux i686 but while im opening in browser for installing it shows database error as Unable to connect to database Server. Invalid mySQL Connection Parameters specified This may be due to the following reasons:... (0 Replies)
Discussion started by: babinlonston
0 Replies

7. Solaris

Solaris,PHP,Expect support

Hello All, I installed php5 from OpenCSW but i believe it does not support the expect module. I tried to run a php script to call expect to do a telnet to a device but i got this error PHP Warning: fopen(): Unable to find the wrapper "expect" - did you forget to enable it when you... (6 Replies)
Discussion started by: kaf3773
6 Replies

8. IP Networking

How to configure RHEL6 to support Aleton 4408 in DSR mode?

Dears How to configure RHEL6 to support Aleton 4408 in DSR(Direct Server Return) mode We have config Aleton 4408 + Windows 2008R2 then Windows set loopback interface with VIP. the exec the following command in CMD netsh interface ipv4 set interface "net" weakhostreceive=enabled netsh... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

9. Programming

Fatal error: mcrypt.h: No such file or directory

Hi All, I am trying to include a mcrypt.h header but I am getting the below error: test01> gcc test1.c test1.c:5:20: fatal error: mcrypt.h: No such file or directory #include <mcrypt.h> ^ compilation terminated. As I cannot put my encryption program here, so have... (4 Replies)
Discussion started by: Shre
4 Replies

10. UNIX for Advanced & Expert Users

Gcc g++ on cygwin - configure: error: *** A compiler with support for C++11 language features is req

Hi, Apologies if I posted it in a wrong section as it is related to gcc on cygwin. Please move it to appropriate section. I'm trying to compile and build libsigc++-2.10.2 on cygwin with gcc 8.3.0. when I run ./configure, I get this: I couldn't fully understand what does... (13 Replies)
Discussion started by: prvnrk
13 Replies
Mcrypt(3)						User Contributed Perl Documentation						 Mcrypt(3)

NAME
Mcrypt - Perl extension for the Mcrypt cryptography library SYNOPSIS
use Mcrypt; # Procedural routines $td = Mcrypt::mcrypt_load($algorithm, $algorithm_dir, $mode, $mode_dir); Mcrypt::mcrypt_get_key_size($td); # in bytes Mcrypt::mcrypt_get_iv_size($td); # in bytes Mcrypt::mcrypt_get_block_size($td); # in bytes Mcrypt::mcrypt_init($td, $key, $iv); $encryptedstr = Mcrypt::mcrypt_encrypt($td, $decryptedstr); $decryptedstr = Mcrypt::mcrypt_decrypt($td, $encryptedstr); Mcrypt::mcrypt_end($td); # Object-oriented methods $td = Mcrypt->new( algorithm => $algorithm, mode => $mode ); $keysize = $td->{KEY_SIZE}; $ivsize = $td->{IV_SIZE}; $blksize = $td->{BLOCK_SIZE}; $td->init($key, $iv); $encryptedstr = $td->encrypt($decryptedstr); $decryptedstr = $td->decrypt($encryptedstr); # If the $td goes out of context, # the destructor will do this for you $td->end(); DESCRIPTION
This module wraps the libmcrypt encryption library for easy and convenient use from within perl. Encryption and decryption using a variety of algorithms is as easy as a few simple lines of perl. Exported constants The predefined groups of exports in the use statements are as follows: use Mcrypt qw(:ALGORITHMS); Exports the BLOWFISH DES 3DES GOST CAST_128 XTEA RC2 TWOFISH CAST_256 SAFERPLUS LOKI97 SERPENT RIJNDAEL_128 RIJNDAEL_192 RIJNDAEL_256 ENIGMA ARCFOUR WAKE libmcrypt algorithms. See the mcrypt(3) man page for more details. use Mcrypt qw(:MODES); Exports the CBC ECB CFB OFB bOFB STREAM modes of encryption. See the mcrypt(3) man page for more details. use Mcrypt qw(:FUNCS); Exports the following functions: mcrypt_load, mcrypt_unload, mcrypt_init, mcrypt_end, mcrypt_encrypt, mcrypt_decrypt, mcrypt_get_block_size, mcrypt_get_iv_size, mcrypt_get_key_size. EXAMPLES
# Procedural approach: # create an ecryption descriptor: # ALGORITHM: blowfish (256 bit key + 16 byte IV) # MODE: cfb # The user application has set: # $method to either "encrypt" or "decrypt" # $infile to the input filename # $outfile to the output filename my($td) = Mcrypt::mcrypt_load( Mcrypt::BLOWFISH, '', Mcrypt::CFB, '' ); my($key) = "32 bytes of your apps secret key"; # secret key my($iv) = "16 bytes of rand"; # shared initialization vector Mcrypt::mcrypt_init($td, $key, $iv) || die "Could not initialize td"; print Mcrypt::mcrypt_encrypt($td, $_) while(<>); Mcrypt::mcrypt_end($td); # OO approach of the above except decrypting my($td) = Mcrypt->new( algorithm => Mcrypt::BLOWFISH, mode => Mcrypt::CFB, verbose => 0 ); my($key) = "k" x $td->{KEY_SIZE}; my($iv) = "i" x $td->{IV_SIZE}; $td->init($key, $iv); print $td->decrypt($_) while (<>); $td->end(); AUTHOR
Theo Schlossnagle <jesus@omniti.com> SEE ALSO
The libmcrypt man page: mcrypt(3). Other libmcrypt information is available at http://mcrypt.hellug.gr/. perl v5.12.1 2010-07-05 Mcrypt(3)
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy