How to generate a secret key with algorithm AES in ColdFusion

GenerateSecretKey() - generate a secret key with algorithm AES

GenerateSecretKeyAES.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GenerateSecretKey function example: how to generate a secret key with algorithm AES</title>
</head>

<body>
<h2 style="color:Crimson">GenerateSecretKey Function Example: AES</h2>

<cfset SecretKey=GenerateSecretKey("AES")>
<cfoutput>
<b>SecretKey[algorith AES]:</b> #SecretKey#
</cfoutput>
</body>
</html>






More ColdFusion examples