there are a few encryption types that can be used (although i'm not sure they are 256 bit)
1) md5 - this is a one way operation (you can't un encrypt) to use simply put md5($varibale to be encrypted)
2)password - this is often used to encrypt a passowrd - once again not sure f the strength.
to use simpy put password($variable to be encrypted).
3)this is probably your best bet
mycrypt. - There are several different uses of this so look it up on php.net or some other php sites.
http://www.php.net/manual/en/function.mcrypt-encrypt.php