Md4
Extends:
src/hasher/hasher32le.js~Hasher32le → Md4
Calculates MD4 hash
Example:
import Md4 from "crypto-api/src/hasher/md4";
import {toHex} from "crypto-api/src/encoder/hex";
let hasher = new Md4();
hasher.update('message');
console.log(toHex(hasher.finalize()));
import Md4 from "crypto-api/src/hasher/md4";
import {toHex} from "crypto-api/src/encoder/hex";
import {fromUtf} from "crypto-api/src/encoder/utf";
let hasher = new Md4();
hasher.update(fromUtf('message'));
console.log(toHex(hasher.finalize()));
<script src="https://nf404.github.io/crypto-api/crypto-api.min.js"></script>
<script>
var hasher = CryptoApi.getHasher('md4');
hasher.update('message');
console.log(CryptoApi.encoder.toHex(hasher.finalize()));
</script>
<script src="https://nf404.github.io/crypto-api/crypto-api.min.js"></script>
<script>
console.log(CryptoApi.hash('md4', 'message'));
</script>