Thread overview
std.hash, when?
Sep 07, 2012
Andrea Fontana
Sep 07, 2012
jerro
Sep 07, 2012
Andrea Fontana
Sep 07, 2012
Adam D. Ruppe
Sep 07, 2012
Andrea Fontana
September 07, 2012
I'm writing a webservice using d for my company.

It needs sha signature. Have I to implement by myself? Is there a date for dmd 2.0xx release with new std.hash included?
September 07, 2012
On Friday, 7 September 2012 at 10:47:12 UTC, Andrea Fontana wrote:
> I'm writing a webservice using d for my company.
>
> It needs sha signature. Have I to implement by myself? Is there a date for dmd 2.0xx release with new std.hash included?

Couldn't you just use std.digest although it isn't in Phobos yet?
September 07, 2012
If std.hash doesn't work out for you - though I think it is going to be in the next release since the vote passed - I have a sha 1 function in my sha.d, and a binding to the mhash C library for more complex signatures in my oauth.d

https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff

Take a look at oauth.d, at the bottom of the file for a function called mhashSign.
September 07, 2012
On Friday, 7 September 2012 at 11:33:59 UTC, jerro wrote:
> On Friday, 7 September 2012 at 10:47:12 UTC, Andrea Fontana wrote:
>> I'm writing a webservice using d for my company.
>>
>> It needs sha signature. Have I to implement by myself? Is there a date for dmd 2.0xx release with new std.hash included?
>
> Couldn't you just use std.digest although it isn't in Phobos yet?

Sure but if it's going to be released I wait for final release :)
September 07, 2012
On Friday, 7 September 2012 at 12:07:47 UTC, Adam D. Ruppe wrote:
> If std.hash doesn't work out for you - though I think it is going to be in the next release since the vote passed - I have a sha 1 function in my sha.d, and a binding to the mhash C library for more complex signatures in my oauth.d
>
> https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff
>
> Take a look at oauth.d, at the bottom of the file for a function called mhashSign.

Adam, you should build a standard library with your "misc-stuff"! :)

September 07, 2012
On 9/7/12 2:12 PM, Andrea Fontana wrote:
> On Friday, 7 September 2012 at 11:33:59 UTC, jerro wrote:
>> On Friday, 7 September 2012 at 10:47:12 UTC, Andrea Fontana wrote:
>>> I'm writing a webservice using d for my company.
>>>
>>> It needs sha signature. Have I to implement by myself? Is there a
>>> date for dmd 2.0xx release with new std.hash included?
>>
>> Couldn't you just use std.digest although it isn't in Phobos yet?
>
> Sure but if it's going to be released I wait for final release :)

It will be part of 2.061.

Andrei