www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.hash, when?

reply "Andrea Fontana" <nospam example.com> writes:
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?
Sep 07 2012
next sibling parent reply "jerro" <a a.com> writes:
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?
Sep 07 2012
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
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
Sep 07 2012
prev sibling next sibling parent "Adam D. Ruppe" <destructionator gmail.com> writes:
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.
Sep 07 2012
prev sibling next sibling parent "Andrea Fontana" <nospam example.com> writes:
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 :)
Sep 07 2012
prev sibling parent "Andrea Fontana" <nospam example.com> writes:
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"! :)
Sep 07 2012