SHA256 Signature

Erdem zayifakimkolu at gmail.com
Tue Jun 18 17:18:18 UTC 2024


On Tuesday, 18 June 2024 at 06:49:24 UTC, Vahid wrote:
>
> How can I create a SHA256 signature hash in D?

Does this do what you want?


```d
import std.digest.md;
import std.digest.sha;
import std.stdio;

void main()
{
     auto key = makeDigest!SHA256();
     key.put(cast(ubyte[])"çorba");
     auto result = key.finish();
     writeln(result.toHexString());
}
```



More information about the Digitalmars-d-learn mailing list