01a5ea9914
adding primop function calculating hash of a string Signed-off-by: Marc Weber <marco-oweber@gmx.de>
7 lines
168 B
Nix
7 lines
168 B
Nix
let
|
|
md5 = builtins.hash "md5";
|
|
sha256 = builtins.hash "sha256";
|
|
strings = [ "text 1" "text 2" ];
|
|
in
|
|
(builtins.map md5 strings) ++ (builtins.map sha256 strings)
|