Howie Ross
Howie Ross

Reputation: 76

ColdFusion 8 Diffie-Hellman Encryption

I am integrating with a 3rd party that requires I use the Diffie-Hellman encryption algorithm. The CF docs indicate that this is a supported algorithm.

When I attempt to call Encrypt() with either "Diffie-Hellman" or "DH" I get the error message: "The Diffie-Hellman algorithm is not supported by the Security Provider you have chosen."

Is it possible to configure CF to use a different Security Provider that would include DH? Or, Is it possible to use java objects directly to accomplish this?

Upvotes: 2

Views: 358

Answers (1)

Peter Boughton
Peter Boughton

Reputation: 112150

The Diffie-Hellman algorithm is only supported by Enterprise edition.
(this is documented in the page you linked to, but it's not entirely clear)

If you only have Standard edition then you'll need to find an existing Java implementation you can use with createObject('java','...'), or maybe reimplement one with pure CFML.

If you do the latter, it would be great to share the code on riaforge/github/wherever, so other CFML users can benefit.

Upvotes: 4

Related Questions