如何为链接元素生成完整性哈希

时间:2016-05-04 16:45:23

标签: html

Bootstrap CDN正在使用子资源完整性,我正在寻找如何生成此哈希。

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" 
      rel="stylesheet" 
      integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" 
      crossorigin="anonymous">

1 个答案:

答案 0 :(得分:2)

https://www.srihash.org/应该做的伎俩;如果您想使用任何URL,它将生成一个哈希值。