Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
		
			
				
	
	
		
			4 lines
		
	
	
	
		
			154 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			4 lines
		
	
	
	
		
			154 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| let
 | |
|   strings = [ "" "text 1" "text 2" ];
 | |
| in
 | |
|   builtins.concatLists (map (hash: map (builtins.hashString hash) strings) ["md5" "sha1" "sha256" "sha512"])
 |