mirror of
https://github.com/emn178/js-md5.git
synced 2026-08-13 04:44:03 +08:00
### Added - TypeScript interfaces. - HMAC feature. ### Fixed - deprecated `new Buffer`, replace with `Buffer.from`. - dependencies and security issues. - don't modify global Array and ArrayBuffer prototypes. - refactor: simplify formatMessage internal logic. ### Changed - remove `eval` and use `require` directly. - throw error by Error oject. - throw error if update after finalize - use unsigned right shift.
26 lines
572 B
HTML
26 lines
572 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>MD5</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/md5.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
<script>
|
|
WORKER = 'worker.js';
|
|
SOURCE = '../src/md5.js';
|
|
mocha.setup('bdd');
|
|
</script>
|
|
<script src="worker-test.js"></script>
|
|
<script>
|
|
mocha.run();
|
|
</script>
|
|
<script>
|
|
</script>
|
|
</body>
|
|
</html>
|