Re: Problem with digest Hmac sha256 method and another problem while using openssl hmac

2017-12-08 Thread Ali Çehreli via Digitalmars-d-learn
On 12/08/2017 01:05 PM, kerdemdemir wrote: > Hi, > > I need to have the same result while using : > > openssl Works for me as adapted from Phobos documentation: import std.stdio; import std.digest.hmac, std.digest.sha; import std.string : representation; void main() { auto hmac =

Problem with digest Hmac sha256 method and another problem while using openssl hmac

2017-12-08 Thread kerdemdemir via Digitalmars-d-learn
Hi, I need to have the same result while using : openssl dgst -sha256 -hmac "somestring" But the server rejecting my generated hmac with the code below . auto hmac = HMAC!SHA256("somestring".representation); hmac.put(url.representation); auto generatedHmac = hmac.finish(); string