encryption with other technologies and coldfusion

For the past week, I have been working on encrypting strings using ColdFusion and needed to make sure that a .Net application could do the same; encrypt the string the same way I was doing it and then return the same encrypted string, so I am able to decrypt it. I was using AES encryption like this:

<cfset key = generateSecretKey("AES") /><!--- i did save the key off but for example purposes just go with this --->

<cfset stringToEnc = "mystring" />

<cfset encryptedString = encrypt(stringToEnc,key,"AES") />

So I told the .Net developer what I was using. He came back and asked things like what cipher mode are you using and what vector are you using and what padding are you going with? Uh? What?! I had no idea. So I did some searching. I found this tech note on Adobe's site here that did describe the other attributes that can be used when using the encrypt and decrypt functions (and these other attributes I actually had to use).

What finally worked was to do this:

<cfset key = generateSecretKey("AES") /><!--- i did save the key off but for example purposes just go with this --->

<cfset stringToEnc = "mystring" />

<cfset salt = "mysaltsixteenchr" /><!--- must be sixteen characters long -->

<cfset encryptedString = encrypt(stringToEnc,key,"AES/CFB/NoPadding","Base64",salt) />

The .Net programmer was successful in using this on his side as well. I could go in to what exactly every attribute means, but I don't have that much time and you can read the article I noted above.

My question is, and I could not find this anywhere, is what are the defaults for the algorithms? For example, what is the default cipher mode and padding for each algorithm? And what is the length the vector or IVorSalt as the documentation states? I'm not a big encryption guy so any help would be appreciated!

southeast minnesota coldfusion user group july meeting

We just had our July meeting of the Southeast Minnesota ColdFusion User Group. We replayed a presentation that Brian Kotek did for the IECFUG on MXUnit, ColdMock, FormUtilities, ColdSpring, and OOP programming in ColdFusion.

We had a good turnout (11 people) for the meeting. Everyone was very impressed with the presentation and good discussion ensued after the presentation was complete. His presentation and code examples can be found here. I would encourage other Adobe User Groups to use this!

I don't know Brian personally, but thanks Brian for a great presentation!

bavarian blast 10k fun run

This past weekend I went back to my home town of New Ulm, MN, to visit my parents and to go to the Bavarian Blast. The blast is a town festival that brings fest-goers from all over the US. They have bands from Germany and also from the US. There is fair-type food, alot of German foods, from brats, to sauerkraut, to spaetzle. And of course, my favorite place at any fest, the beer garden. :)

To start out my "festing", I ran the 10K on Saturday morning. There was a total 116 participants of the 10K and 2 mile. The run was a great one! We ran on the bike/walk/run trail that runs on the East side of town pretty much the entire length of town. The path is paved and very scenic.

I ran my best time yet for a 10K (this is my 3rd one). I ran it in 53:40, or an 8:38 mile pace. I felt good during the run and after. The complete race results are here.

I thought the race was well-run by Anytime Fitness in New Ulm. We received t-shirts and the bag of goodies included a ticket to Bavarian Blast (worth $8) which was awesome. I ran into two friends of mine from high school, Nicole and Stacy. It was great to catch up with them and run with them!

In the picture, I am the guy in white and sunglasses on the far right between the guy in blue and the guy in red.

BlogCFC was created by Raymond Camden. This blog is running version 5.7.002.