<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000503.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-24T20:54:10</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#84465" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#82590" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#82258" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#61578" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#61561" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#43963" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#41847" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#31000" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#30999" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29818" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29797" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29740" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29567" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29532" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#84465">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#84465</link>
		<description>Just a note for people comparing hashes with other languages, the hash() function returns an uppercase hex string whereas a lot of other languages will return a lowercase hex string&lt;br /&gt;&lt;br /&gt;so if you try&lt;br /&gt;toBase64(Hash('apple','SHA'))&lt;br /&gt;&lt;br /&gt;and try to match it with php code&lt;br /&gt;base64_encode(sha1('apple'));&lt;br /&gt;&lt;br /&gt;you'll need to change your code too &lt;br /&gt;toBase64( LCase( Hash('apple','SHA') ) )</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-05-29T13:34:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#82590">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#82590</link>
		<description>The documentation is unclear. MD5 and CFMX_COMPAT both use the MD5 algorithm, so they are both, effectively, the default.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2008-04-02T14:30:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#82258">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#82258</link>
		<description>In the documentation, it says both the  CFMX_COMPAT and MD5 algorithms are default.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-03-24T06:59:09</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#61578">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#61578</link>
		<description>Thanks for the info - I've updated the doc for the next release of ColdFusion.</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2007-02-05T13:40:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#61561">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#61561</link>
		<description>On a editorial note, you have the text: 'This table has the following three entries:' when there are only two entries in the table listed.</description>
		<dc:creator>Zoramite</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-02-05T12:41:33</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#43963">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#43963</link>
		<description>The numbers in the docs appear to be correct for base64 encoded data.  For example, a raw binary SHA hash is 20 chars.  HEX is 40 chars.  Base64 is 28chars.  You can convert from HEX to Base64 (which is required by LDAP for example), like so:&lt;br /&gt;&lt;br /&gt;base64SHA = toBase64(binaryDecode(hash(form.myPassword,'SHA-1'),'hex'));</description>
		<dc:creator>Hallow</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-01-07T15:26:56</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#41847">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#41847</link>
		<description>The docs are wrong about how big the returned strings are. I ran the following code below and these are the results I got.&lt;br /&gt;&lt;br /&gt;Hash(&quot;This is a string to hash&quot;, &quot;MD5&quot;) - 32 characters&lt;br /&gt;Hash(&quot;This is a string to hash&quot;, &quot;SHA&quot;) - 40 characters&lt;br /&gt;Hash(&quot;This is a string to hash&quot;, &quot;SHA-256&quot;) - 64 characters&lt;br /&gt;Hash(&quot;This is a string to hash&quot;, &quot;SHA-384&quot;) - 96 characters&lt;br /&gt;Hash(&quot;This is a string to hash&quot;, &quot;SHA-512&quot;) - 128 characters</description>
		<dc:creator>sthompson</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-11-03T22:41:26</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#31000">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#31000</link>
		<description>The point was twofold. One the sample did not work and two, the documentation was not accurate. I received a very quick response from MM, it will be noted for the next version of the documentation.</description>
		<dc:creator>BOBCAMPBELL</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-04-06T14:54:50</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#30999">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#30999</link>
		<description>I think everyone is missing the point... this is not supposed to be a cookie-cutter code sample, its supposed to show you how to use the hash() function.  I think it does that just fine =)</description>
		<dc:creator>override11</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-04-06T13:24:13</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29818">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29818</link>
		<description>In addition to the CF_SQLCHARVAR problem,&lt;br&gt;the specified userID/pw combinations don't seem to work. I opened the securedata database table&lt;br&gt;and found two more users, both of which worked for me: blaw, with password blaw and dknob with password&lt;br&gt;dknob. &lt;br&gt;&lt;br&gt;Hope this helps.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-03-16T07:12:32</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29797">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29797</link>
		<description>Thanks! I thought that was really going to fix it! But no such luck. The results are the same, &quot;User ID 12 or password is not valid. Try again. &quot; I wonder if it has something to do with jsessions?</description>
		<dc:creator>BOBCAMPBELL</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-16T01:12:04</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29740">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29740</link>
		<description>Um...the problem you fellas are having with the example is because the cfqueryparam cfsqltype attribute is &quot;CF_SQL_CHARVAR&quot; in the code example.&lt;br /&gt;&lt;br /&gt;Try CF_SQL_VARCHAR and see how it works.</description>
		<dc:creator>Mechro</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-15T11:33:48</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29567">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29567</link>
		<description>Note: When I said it worked fine I was mistaken. I'm using Dreamweaver and it worked without cfqueryparam when tested inside the Recordset wizard box  by clicking the Test button and entering 12. It returned the right recordset. &lt;br /&gt;Either way it does not work when tested in the browser. Bob</description>
		<dc:creator>BOBCAMPBELL</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-12T03:32:56</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29532">
		<title>coldfusion/7/htmldocs/00000503.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000503.htm#29532</link>
		<description>I've copied the Hash example code to cfm page. When I attempt to run the page, I get a &quot;sql missing operator error&quot;. If I remove the cfqueryparam from the WHERE  statement and just use WHERE UserID = '#FORM.UserID# ' it works fine. Can someone explain how I would use the cfqueryparam in this type of situation?</description>
		<dc:creator>bob2cam</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-11T07:43:08</dc:date>
	</item>
	</rdf:RDF>

