mirror of
https://github.com/emn178/js-sha1.git
synced 2026-08-12 20:11:36 +08:00
- TypeScript interfaces. #6, #9 - HMAC feature. - support for web worker. #14 ### Fixed - deprecated `new Buffer`, replace with `Buffer.from`. #10 - dependencies and security issues. - refactor: simplify formatMessage internal logic. - Generates incorrect hash in some cases. ### Changed - remove `eval` and use `require` directly. #8 - throw error by Error oject. - throw error if update after finalize - use unsigned right shift.
26 lines
575 B
HTML
26 lines
575 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>SHA1</title>
|
|
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
<script src="../node_modules/expect.js/index.js"></script>
|
|
<script src="../src/sha1.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
<script>
|
|
WORKER = 'worker.js';
|
|
SOURCE = '../src/sha1.js';
|
|
mocha.setup('bdd');
|
|
</script>
|
|
<script src="worker-test.js"></script>
|
|
<script>
|
|
mocha.run();
|
|
</script>
|
|
<script>
|
|
</script>
|
|
</body>
|
|
</html>
|