RE: cf_encrypt()

2004-08-19 Thread Spike
It performs an XOR on each character in the string with the corresponding
character in the key. If it gets to the end of the key, it starts again at
the first character in the key. The result of each of these operations is
formated as a 2 character HEX representation of it's ascii number.

As has been mentioned, it's very weak.

The code below should show provide a reasonable explanation of how it works.

*


#cfusion_encrypt(string,key)#



	
	
		
	

	







	
	
	
formatBaseN(bitXor(asc(stringChar),asc(keyChar)),16)>
	
		
	
	


#newString#
**

Spike


Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org 


>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Eric Jones
>Sent: Thursday, August 19, 2004 12:12 PM
>To: CF-Talk
>Subject: RE: cf_encrypt()
>
>VERY basic. It only returns a string with letters and numbers. Nothing
>"special" about it not sure if it's any particular 
>algorithm, or just
>something MM came up with... Would be nice to know, so if 
>anyone has any
>details please post to list :)
>
>ERJ
>  -Original Message-
>  From: Willy Ray [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, August 19, 2004 3:11 PM
>  To: CF-Talk
>  Subject: cf_encrypt()
>
>
>  Does anybody know what kind of encryption cf_encrypt() is using?
>
>  Willy
>
>  -
>  Willy Ray
>  Web Applications Developer
>  Certified Advanced ColdFusion Developer
>  Westminster College
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cf_encrypt()

2004-08-19 Thread Willy Ray
Rob, you rock.  :)

>>> [EMAIL PROTECTED] 8/19/2004 2:01:26 PM >>>
Well its not AES thats for sure ;-)

On Thu, 19 Aug 2004 13:10:55 -0600, Willy Ray
<[EMAIL PROTECTED]> wrote:
> Does anybody know what kind of encryption cf_encrypt() is using?
> 
> Willy
> 
> -
> Willy Ray
> Web Applications Developer
> Certified Advanced ColdFusion Developer
> Westminster College
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cf_encrypt()

2004-08-19 Thread Rob
Well its not AES thats for sure ;-)

On Thu, 19 Aug 2004 13:10:55 -0600, Willy Ray
<[EMAIL PROTECTED]> wrote:
> Does anybody know what kind of encryption cf_encrypt() is using?
> 
> Willy
> 
> -
> Willy Ray
> Web Applications Developer
> Certified Advanced ColdFusion Developer
> Westminster College
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cf_encrypt()

2004-08-19 Thread Matt Liotta
I thought it was just XOR.

-Matt

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Willy Ray
> Sent: Thursday, August 19, 2004 3:16 PM
> To: CF-Talk
> Subject: RE: cf_encrypt()
> 
> Yeah, that's what I'm curious about. What algorithm?  Thanks for
> clarifying my question! :~)
> 
> Willy
> 
> >>> [EMAIL PROTECTED] 8/19/2004 1:12:14 PM >>>
> VERY basic. It only returns a string with letters and numbers. Nothing
> "special" about it not sure if it's any particular algorithm, or
> just
> something MM came up with... Would be nice to know, so if anyone has
> any
> details please post to list :)
> 
> ERJ
>   -Original Message-
>   From: Willy Ray [mailto:[EMAIL PROTECTED]
>   Sent: Thursday, August 19, 2004 3:11 PM
>   To: CF-Talk
>   Subject: cf_encrypt()
> 
> 
>   Does anybody know what kind of encryption cf_encrypt() is using?
> 
>   Willy
> 
>   -
>   Willy Ray
>   Web Applications Developer
>   Certified Advanced ColdFusion Developer
>   Westminster College
> 
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cf_encrypt()

2004-08-19 Thread Willy Ray
Yeah, that's what I'm curious about. What algorithm?  Thanks for
clarifying my question! :~)

Willy

>>> [EMAIL PROTECTED] 8/19/2004 1:12:14 PM >>>
VERY basic. It only returns a string with letters and numbers. Nothing
"special" about it not sure if it's any particular algorithm, or
just
something MM came up with... Would be nice to know, so if anyone has
any
details please post to list :)

ERJ
  -Original Message-
  From: Willy Ray [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, August 19, 2004 3:11 PM
  To: CF-Talk
  Subject: cf_encrypt()

  Does anybody know what kind of encryption cf_encrypt() is using?

  Willy

  -
  Willy Ray
  Web Applications Developer
  Certified Advanced ColdFusion Developer
  Westminster College
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cf_encrypt()

2004-08-19 Thread Eric Jones
VERY basic. It only returns a string with letters and numbers. Nothing
"special" about it not sure if it's any particular algorithm, or just
something MM came up with... Would be nice to know, so if anyone has any
details please post to list :)

ERJ
  -Original Message-
  From: Willy Ray [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 19, 2004 3:11 PM
  To: CF-Talk
  Subject: cf_encrypt()

  Does anybody know what kind of encryption cf_encrypt() is using?

  Willy

  -
  Willy Ray
  Web Applications Developer
  Certified Advanced ColdFusion Developer
  Westminster College
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]