login about faq

On the page http://www.chilkatsoft.com/refdoc/xChilkatRsaRef.html for the function SignString (and other signing functions), one of the parameters is HashAlgorithm, which is a string parameter. It says that literal strings like "MD5", "SHA-1", etc are how you specify the hash algorithm. But is this case sensitive? Does "MD5" work just as well as "md5"? There's nothing on that webpage that says if it's case sensitive or not.

asked Nov 27 '14 at 00:36

Ben%20Hutchinson's gravatar image

Ben Hutchinson
63


It is not case sensitive. Internally, Chilkat will take the string you pass, strip it of whitespace, strip it of non-alpha-numeric chars, convert it to lowercase, and then compare against a list of known hash algorithms. Therefore, "SHA-1" is internally converted to "sha1". Passing "SHA-1", "Sha_1", "Sha1", etc. are all the same..

link

answered Nov 27 '14 at 08:53

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

edited Nov 27 '14 at 08:55

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×7
×5

Asked: Nov 27 '14 at 00:36

Seen: 1,036 times

Last updated: Nov 27 '14 at 08:55

powered by OSQA