Method __builtin.Nettle.__Hash()->State()->digest() class __builtin.Nettle.__Hash class __builtin.Nettle.__Hash.State Method digest string(8bit) digest(int|void length) Description Generates a digest, and resets the hashing contents. Parameter length If the length argument is provided, the digest is truncated to the given length. Returns The digest.