first you have to buy a SSL certificate. The best deal I have found is from www.geotrust.com. After, you have to install the certificate on your server, if you run a web based panel like ensim, plesk, or cobalt, it is very easy to install a certificate from inside there. Once you have done that, you just need to point your customers to [url]https://[/url] instead of [url]http://.[/url] This will make all data become 128 bit-encrypted.
The next thing you want to do, is check to see if the browser is USING the SSL encryption. It is very easy for someone to manually type in [url]http://[/url] instead of [url]https://.[/url] So you have to use a bit of code, similar to the following:
<?php
if (($_SERVER['HTTPS']) != "on")
{
?>
<script language="JavaScript">
<!--
location.reload("<? echo("https://www.yourdomain.com");
//-->
</script>
<?
}
?>
That will automatically refresh the page if SSL is not active on a page you want it to be active on.
As far as encrypyting actual cookies, you can use md5() to encrypt the data you plan to store BEFORE you store it. Then, when u check to see if it is valid, compare the now-encrypted cookie to an encrypted verison of the data u want to authenticate.
Hope that helps some.