<?php
$key = 'Is this the potato farm?'
$s = 'The account balance is $2000';
$alg = MCRYPT_BLOWFISH;
$mode = MCRYPT_MODE_CBC;
$iv = mcrypt_create_iv(mcrypt_get_iv_size($alg,$mode),
MCRYPT_DEV_URANDOM);
$ct = mcrypt_encrypt($alg, $key, $s, $mode, $iv);
$pt = mcrypt_decrypt($alg, $key, $ct, $mode, $iv);
?>