SHA-256
import "std/crypto/sha256.zc"
fn main() {
let hash = Sha256::hash("Rosetta code");
println "";
}
Output:
764faf5c61ac315f1497f9dfa542713965b785e5cc2f707d6468d7d1124cdfcf
Attribution: This is a community solution for the Rosetta Code task SHA-256 in Zen C.
This article uses material from the Rosetta Code article SHA-256, which is released under the GNU Free Documentation License 1.3. A list of the original authors can be found in the page history.