Mimicing coldfusion code

Status
Not open for further replies.

flyingember

Ars Legatus Legionis
21,332
I have a bunch of AES 128 encrypted password values that I need a powershell/.net solution to encrypt and decrypt to replace a coldfusion app. I have the output and keyphrase of all of them.

This is the CF 6.1 code

<CFOBJECT TYPE="COM" ACTION="create" NAME="Enc" CLASS="Encryption.Aes.COM.AesCOMImplementation">
<cfset resultvalue = Enc.Encrypt("#phrasekey1#", "#inputphrase1#")>
<cfset resultvalue = Enc.Decrypt("#phrasekey#", "#inputphrase1#")>

Does anyone know what this does or any .net equivalent?
It clearly doesn't get to choose a salt or IV so I'm not sure what it's doing.
 

andrewme

Senator
7,120
Subscriptor
Google can't find anything for Encryption.Aes.COM.AesCOMImplementation, so it doesn't look like it's a standard CF thing or a Windows library. Probably specific to your project. Who knows what it might be doing for encoding, padding, IV generation, etc. Do you have source available, or someone who could reverse engineer the binary that provides the COM interface?
 
Status
Not open for further replies.