This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation template to deploy railo4/tomcat7/nginx.", | |
"Parameters" : { | |
"KeyName" : { | |
"Default" : "bacfug", | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="getEncryptedPassword" access="public" returntype="string" output="False"> | |
<cfargument name="password" type="string" required="True" /> | |
<cfargument name="iterations" type="numeric" required="false" default="10000" /> | |
<cfargument name="saltByteLength" type="numeric" required="false" default="8" /> | |
<cfif arguments.iterations LT 1000> | |
<cfthrow message="Iterations must be greater than or equal to 1000" /> | |
</cfif> | |
<cfif arguments.saltByteLength LT 8> |