All Posts Tagged Mcrypt

Plugging mcrypt into PHP, on Mac OS X Snow Leopard 10.6.1

September 23rd, 2009 | 158 comments

First mcrypt on Leopard, and now we ready for the winter cat. Additionally, special thanks goes out in advance to commenter Yvan Barthelemy (a.k.a. ybart) for cluing me in here. The procedure is almost exactly like the previous…almost. So pay attention. The following instructions cater to those who a) are developing on OS X Snow [...]

I like my cookies with encryption on top

February 11th, 2009 | 4 comments

Quick and dirty mcrypt usage I don’t know where I discovered the original idea, but in messing around with a PHP app I found the need to encrypt session cookies. Here’s how it was done, with the mcrypt library: //encrypt session cookie function encryptUserCookie($value) { if(!$value) { return false; } $key = SESSION_SALT; $text = [...]

Plugging mcrypt into PHP, on Leopard 10.5.6

December 26th, 2008 | 100 comments

mcrypt on Fedora Core easy – on Leopard with PHP 5.2.6 not so much. The instructions below cater to those folks who a) are developing on OS X Leopard 10.5.6, b) need the capabilities provided by mcrypt during their PHP development, and c) do not want to completely recompile PHP to get there. You’ll get [...]

Have Fedora, but no mcrypt functionality for PHP?

February 21st, 2008 | 17 comments

Easy fix, despite the official line from PHP which says you need to recompile PHP –with-mcrypt. I’ll caveat this by stating I’m using Fedora Core 7… 1) At the terminal, su root – you are now going to yum, not ./configure, make, and make install… 2) yum install mcrypt – this will get you libmcrypt, [...]