Blame view

node_modules/crypto-browserify/example/index.html 317 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
10
11
12
  <!doctype html>
  <html>
  <script src=bundle.js></script>
  <body>
    <pre>
    require('crypto').createHash('sha1').update('abc').digest('hex') == '<span id=ans></span>'
    </pre>
  </body>
  <script>
    document.getElementById('ans').innerHTML = require('crypto').createHash('sha1').update('abc').digest('hex')
  </script>
  </html>