01a5ea9914
adding primop function calculating hash of a string Signed-off-by: Marc Weber <marco-oweber@gmx.de>
6 lines
168 B
Nix
6 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)
|