Skip to content


Subversion checkout URL

You can clone with
Download ZIP
cipher stuff for coldfusion
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Crypto.cfc More spelling corrections
Crypto_original.cfc Script refactor! Added Readme


This project is forked from Bill Shelton's 2009 project of the same name.

I really liked Bill's take on managing one's own hashing tools rather than rely on Adobe, no offence Adobe.

I've, hopefully, brought the original project up to date with a cfscript refactor.

There are only two public methods you'll be using in your application.

  • generateSalt()
    • size - required numeric default = 16
    • type - required string default = 'base64'
  • computeHash()
    • password - required string
    • salt - required string
    • interations - required numeric default = 1024
    • algorithm - required string default = SHA-512

You'll want to generate a salt first, then run that and your password through computeHash().

var crypto = new Crypt0();
var salt = crypto.generateSalt();
var hash = crypto.computeHash('mypassword', salt);

Something went wrong with that request. Please try again.