Nix Hash: Difference between revisions
imported>Piegamesde Initial page |
imported>Piegamesde m Fixed bold text markup |
||
Line 18: | Line 18: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
You can specify the hash in | You can specify the hash in '''any base''' that's supported. Thus, <code>sha256 = "21d536debb3076d4f6e9044bd9ef15c8c58b29f9cbd4ad406b058310a565debc";</code> is equally allowed. | ||
An alternative – and supposedly preferred – way of specifying hashes are so-called "SRI hashes". They're pretty simple, you just prepend the algorithm used and a dash to the hash: | An alternative – and supposedly preferred – way of specifying hashes are so-called "SRI hashes". They're pretty simple, you just prepend the algorithm used and a dash to the hash: |