Hi Rob,
That sounded pretty nasty. We use it a lot and recommend it to others. While we have
no problems I thought I'd better run a stress test.
Ran fine in the 50-iteration loop below, where it generates 1024-bit keys, encrypts
then decrypts. Pretty intense. Takes several minutes to run. No memory leakage.
Not sure what your problems were, but memory leaks from the version of the tag I have
aren't a problem.
<html><head><title></title></head><body>
<CFSET variables.LoopCount=0>
<CFLOOP
INDEX="variables.LoopStep"
FROM="1"
TO="50"
STEP="1">
<CFSET variables.LoopCount=variables.LoopCount+1>
<CFSET variables.TempField="Round "&variables.LoopCount&". This is an
encrypted string. Blah Blah Blah. 1234 5678 9012 3456 Expires 10/02.">
<CFLOCK name="#CreateUUID()#" type="EXCLUSIVE" timeout="10">
<cfx_pwtextcrypt
action="generate"
key_length=1024>
<CFOUTPUT>
#Private_Key#<BR>
#Public_Key#<BR>
<CFX_pwtextcrypt
ACTION="encrypt"
TEXT=#variables.TempField#
CRYPT_KEY=#Public_Key#
KEY_LENGTH=1024>
Encrypted: #variables.Crypt_Value#<BR>
<CFX_pwtextcrypt
ACTION="decrypt"
TEXT=#variables.Crypt_Value#
CRYPT_KEY=#Private_Key#
KEY_LENGTH=1024>
Decrypted: #variables.Crypt_Value#<HR>
</CFOUTPUT>
</CFLOCK>
</CFLOOP>
</body></html>
---------------------------------------
Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---------------------------------------
---------- Original Message ----------------------------------
from: "Rob Rohan" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 10 Oct 2002 10:07:01 -0700
>Hi Ben,
> We used to use that tag and abandoned it. I wrote an in house
>implementation with stronger encryption - plus the tag would crash our
>server almost ever other day, think it has a memory leak.
>
> Anyway I'll try to help if I can.
>
>
>
>-----Original Message-----
>From: Ben Densmore [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 8:55 AM
>To: CF-Talk
>Subject: cfx_pwtextcrypt
>
>
>Anyone currently using the cfx_pwtextcrypt custom tag that can answer a
>few questions off list?
>
>Thanks,
>Ben
>
>Ben Densmore
>Web Developer
>eSupport.com,Inc.
>1538 Turnpike St.
>North Andover, MA 01845
>
>Phone: (978) 686-6468 x333
>Email: [EMAIL PROTECTED]
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.