in reply to HMAC Sha256 Help!

$step1="$method\\n $datestring\\n $appid\\n $path";

That looks unusual. Why the double backslashes? Why the whitespace? Were you specifically instructed to create $step1 like this?

Replies are listed 'Best First'.
Re^2: HMAC Sha256 Help!
by ribble (Novice) on Jul 18, 2017 at 12:06 UTC

    Yes, apologies step1 is to be constructed this way.

    a sample string is "GET\n Wed, 08 Apr 2015 21:37:33 GMT \n1b700d2e7b7b4abfa1950c865e23e81a\n /xxxxxxx/api/v1/users/jsmith/factors"