Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RSA-SHA1 encryption with CF8 Enterprise

New Here ,
Apr 30, 2008 Apr 30, 2008
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?
TOPICS
Advanced techniques
850
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 16, 2008 May 16, 2008
The docs are junk. SHA is one way, for hashes.

hash(MyString,"SHA-512")
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 16, 2008 May 16, 2008
I don't want to do SHA only. I want to do RSA-SHA1.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 16, 2008 May 16, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources