Skip to content

I provide easier access to Java's underlying crypto / security methods (before ColdFusion 10 introduced hmac() method).

License

Notifications You must be signed in to change notification settings

MrRobWad/Crypto8.cfc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto8.cfc - Crypto / Security Methods For ColdFusion

Original cfscript/cf9 code base by Ben Nadel (www.bennadel.com)

CF8 code revisions by Robert Waddell (mrrobwad.blogspot.com)

ColdFusion 10 introduced the hmac() function for generating secure, hashed message authentication codes (HMAC). This function makes dealing with 3rd-Party APIs much easier. Before ColdFusion 10, however, you would need to dip down into the Java layer to access the security libraries. This ColdFusion component - Crypto.cfc - attempts to make access to such libraries easier and more concise.

ColdFusion 9 version (crypto.cfc) utilizes cfscript tags which is the original Crypto.cfc coding style.

ColdFusion 8 version (crypto8.cfc) utilizes ColdFusion tags for extended backward compatibility.

Currently Supported Methods

  • hmacMd5( key, input [, encoding] )
  • hmacSha1( key, input [, encoding] )
  • hmacSha256( key, input [, encoding] )

Encoding defults to "hex"; however, the following value are acceptable:

  • "hex" - Ruturns the hash as a hex-encoded string.
  • "base64" - Returns the hash as a base64-encoded string.
  • "binary" - Returns the hash as a byte array.

About

I provide easier access to Java's underlying crypto / security methods (before ColdFusion 10 introduced hmac() method).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ColdFusion 88.0%
  • XSLT 6.2%
  • JavaScript 4.1%
  • CSS 1.7%