mirror of
https://github.com/emn178/js-sha256.git
synced 2026-08-12 20:32:16 +08:00
### Fixed - Chrome bug by workaround. #40 - deprecated `new Buffer`, replace with `Buffer.from`. #34 - dependencies and security issues. #32, #36 ### Changed - TypeScript interface, secretKey can be bytes like message. #23, #25 - remove `eval` and use `require` directly. #18, #26
27 lines
705 B
HTML
27 lines
705 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>SHA256</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.css">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/expect.js/0.2.0/expect.min.js"></script>
|
|
<script src="../src/sha256.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
<script>
|
|
WORKER = 'worker.js';
|
|
SOURCE = '../src/sha256.js';
|
|
mocha.setup('bdd');
|
|
</script>
|
|
<script src="worker-test.js"></script>
|
|
<script>
|
|
mocha.checkLeaks();
|
|
mocha.run();
|
|
</script>
|
|
<script>
|
|
</script>
|
|
</body>
|
|
</html>
|