adobe coldfusion examples code for web developers

Hash function example: how to use Hash function with MD5 algorithm

Hash function example: how to use Hash function with MD5 algorithm
HashMD5.cfm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hash function example: how to use Hash function with MD5 algorithm</title>
</head>

<body>
<h2 style="color:Crimson">Hash Function Example: MD5</h2>

<cfset TestString="This is a string">
<cfset HashTestString=Hash(TestString,"MD5")>
<cfoutput>
<b>TestString:</b> #TestString#
<br />
<b>Hash TestString[algorithm MD5]:</b> #HashTestString#
</cfoutput>
</body>
</html>




Related coldfusion example