mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
6f1743b1a5
Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
5 lines
154 B
Nix
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"])
|