0
0
Fork 0
forked from lix-project/lix
lix/tests/lang/eval-okay-hash.nix
Eelco Dolstra 6f1743b1a5 Support SHA-512 hashes
Fixes .

Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s
versus 131 MB/s).
2015-11-04 16:37:49 +01:00

5 lines
154 B
Nix

let
strings = [ "" "text 1" "text 2" ];
in
builtins.concatLists (map (hash: map (builtins.hashString hash) strings) ["md5" "sha1" "sha256" "sha512"])