W3C home > Mailing lists > Public > public-forms@w3.org > March 2009

digest() and hmac() function results to lower case

From: John Boyer <boyerj@ca.ibm.com>
Date: Mon, 9 Mar 2009 20:32:59 -0700
To: public-forms@w3.org
Message-ID: <OF36424389.10A5A7E9-ON88257575.0010A40C-88257575.00136EE3@ca.ibm.com>
Hi all,

Why was it decided that the results of digest() and hmac() would be 
I realize that the algorithms base-64 and hex *could* return upper or 
lower case letters, but is it really that hard for implementations to push 
the results to lower case?
It just seems strange to push that translation onto the application author 
or form author.

It's not a big deal either way, but I'm doing the spec work now, and it 
just looks so odd to say:

<eg>digest('abc', 'SHA-1', 'hex')</eg>
<p>returns <phrase diff="add">a string that under case-insenstive 
comparison is equal to </phrase> <code>

John M. Boyer, Ph.D.
STSM, Interactive Documents and Web 2.0 Applications
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed: 
Received on Tuesday, 10 March 2009 03:32:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:14:00 UTC