How to hash SHA256 from string?

Jacob Shtokolov jacob.100205 at gmail.com
Tue Dec 5 11:07:51 UTC 2023


On Sunday, 3 December 2023 at 13:42:53 UTC, zoujiaqing wrote:
> Use botan so easy:

Well, what about:

```D
import std.digest.sha;
import std.stdio;

void main()
{
     string appKey = 
"11111111111111111111111111111111111111111111111111111";
     appKey.sha256Of.toHexString.writeln;
}
```

Not sure if it's really more complicated than Botan 🤷‍♂️️


More information about the Digitalmars-d-learn mailing list