The
CCEncryptString() function is based on an assumed RC4 algorithm and is similar to the ASP version at
http://www.4guysfromrolla.com/webtech/010100-1.shtml
It's quite strong when we use with 128-bit keys, while AFAIK you can use it with longer keys like 512-bit and there are no limits on string size. This function is provided to implement quick two-way
encryption (decryptable) without requiring the PHP Mcrypt library (PHP) or being limited by lack of
encryption functions (ASP). For certain uses you can also use the
MD5 function provided with PHP (one way
encryption / hashing), which we often use for
encrypting
passwords. The Mcrypt library can also be useful.