sha256Encode

Calculate the SHA256 of a string

We use openssl to do this since we're already linking to it. We could also use functions from the phobos library.

Param: s - string to calculate hash from

ubyte[SHA256_DIGEST_LENGTH]
sha256Encode
(
const char[] s
)

Return Value

Type: ubyte[SHA256_DIGEST_LENGTH]

ubyteSHA256_DIGEST_LENGTH for the hash

Meta