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

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..


answered Nov 27 '14 at 08:53

chilkat's gravatar image

chilkat ♦♦

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



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



Asked: Nov 27 '14 at 00:36

Seen: 6,379 times

Last updated: Nov 27 '14 at 08:55

powered by OSQA