mirror of
https://github.com/emn178/js-md5.git
synced 2026-08-13 04:51:44 +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.
24 lines
549 B
HTML
24 lines
549 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>
|
|
mocha.setup('bdd');
|
|
</script>
|
|
<script src="test.js"></script>
|
|
<script src="hmac-test.js"></script>
|
|
<script>
|
|
mocha.checkLeaks();
|
|
mocha.run();
|
|
</script>
|
|
</body>
|
|
</html>
|