Sample code for 30+ languages & platforms
React Native

MD4 Hash a String

See more Encryption Examples

MD4 hash a string.

Chilkat React Native Downloads

React Native
import { Crypt2 } from '@chilkat/react-native'

function chilkatExample() {
  // This example assumes the Chilkat API to have been previously unlocked.
  // See Global Unlock Sample for sample code.

  const crypt = new Crypt2();

  const content = 'The quick brown fox jumps over the lazy dog';

  // The desired output is a hexidecimal string:
  crypt.encodingMode = 'hex';

  // Set the hash algorithm:
  crypt.hashAlgorithm = 'md4';

  const hashStr = crypt.hashStringENC(content);

  console.log(hashStr);

  // The output is:
  // 1BEE69A46BA811185C194762ABAEAE90
}