1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

experimental/hash

adding primop function calculating hash of a string

Signed-off-by: Marc Weber <marco-oweber@gmx.de>
This commit is contained in:
Marc Weber 2013-02-07 00:03:46 +01:00 committed by Eelco Dolstra
parent 8add116acd
commit 01a5ea9914
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,6 @@
let
md5 = builtins.hash "md5";
sha256 = builtins.hash "sha256";
strings = [ "text 1" "text 2" ];
in
(builtins.map md5 strings) ++ (builtins.map sha256 strings)