Skip to main content
Participant
April 30, 2008
Question

RSA-SHA1 encryption with CF8 Enterprise

  • April 30, 2008
  • 3 replies
  • 846 views
So, the documentation of Encrypt() says that I should be able to do RSA-SHA1 encryption with ColdFusion 8 Enterprise:

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_01.html
RSA PKCS#1 v1.5 (sign, verify) (SHA-1,SHA-224,SHA-256,SHA-384,SHA-512)

Unfortunately, there's no reference to the syntax for doing such an encryption, and there don't seem to be any BSafe Crypto-J docs out in the open. I've tried every combination of "RSA" and "SHA-1" in the algorithm argument that I can think of.

Anyone have any ideas?
This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
May 16, 2008
It looks like the syntax should be:

Encrypt(sText, sKey, "SHA-1")

Livedocs mentions that some libraries are only available on Enterprise edition of CF and access to the libraries can be restricted, so I would double check the settings on your CF server to make sure you have access to those libraries.
May 16, 2008
The docs are junk. SHA is one way, for hashes.

hash(MyString,"SHA-512")
Participant
May 16, 2008
I don't want to do SHA only. I want to do RSA-SHA1.