Skip to content

Instantly share code, notes, and snippets.

View mvanleest's full-sized avatar
💻
Working on...

Michael van Leest mvanleest

💻
Working on...
View GitHub Profile
{
"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",
@mvanleest
mvanleest / pbkdf2.cfm
Created November 28, 2015 14:53 — forked from ryanguill/pbkdf2.cfm
PBKDF2 in CF: This is a proof of concept for hashing passwords in ColdFusion using PBKDF2. I believe this requires JRE 1.6+, but I am not certain of that; I have only tested on 1.7. I have tested this on CF10 and railo 4.1.2. I am researching this as an alternative to bcrypt - which some say is better (slower) than PBKDF2, but requires the use o…
<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>