Hi,

How can I create a SHA256 signature hash in D? Something similar to the PHP code below:

```php
openssl_sign($body, $signature, $secret, OPENSSL_ALGO_SHA256);
```

I've tried the code below without success:

```d
auto signature = body.representation.hmac!SHA256(secret.representation).toHexString!(LetterCase.lower).to!string;
```

Reply via email to