<!--- This example shows the use of encrypt and decrypt --->
<HTML>
<HEAD>
<TITLE>Encrypt Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>Encrypt Example</H3>

<P>This file has been disabled for online viewing. Please use your copy of ColdFusion to view this example. 
<!--- <P>This function allows for the encryption and decryption of a 
string. Try it out by entering your own string and a key of your 
own choosing and seeing the results.
<CFIF IsDefined("form.myString")>
   <CFSET string = form.myString>
   <CFSET key = form.myKey>
   <CFSET encrypted = encrypt(string, key)>
   <CFSET decrypted = decrypt(encrypted, key)>
   <CFOUTPUT>
     <H4><B>The string:</B></H4> #string# <BR>
     <H4><B>The key:</B></H4> #key#<BR>
     <H4><B>Encrypted:</B></H4> #encrypted#<BR>
     <H4><B>Decrypted:</B></H4> #decrypted#<BR>
    </CFOUTPUT>
</CFIF>
<FORM action="encrypt.cfm" method="post">
<P>Input your key:
<P><INPUT TYPE="Text" NAME="myKey" VALUE="foobar">
<P>Input your string to be encrypted:
<P><TEXTAREA NAME="myString" COLS="40" ROWS="5" WRAP="VIRTUAL">
This string will be encrypted (try typing some more)
</TEXTAREA>
<INPUT TYPE="Submit" VALUE="Encrypt my String">
</FORM> --->

</BODY>
</HTML>       
