• Version 2.3.5
  • Published
  • 4.55 kB
  • No dependencies
  • MIT license


npm i @types/md5
yarn add @types/md5
pnpm add @types/md5


TypeScript definitions for md5



function md5

md5: {
message: string | number[] | Uint8Array,
options: md5.Options & { asBytes: true }
): number[];
message: string | number[] | Uint8Array,
options?: Pick<md5.Options, 'asString' | 'encoding'>
): string;
(message: string | number[] | Uint8Array, options?: md5.Options):
| string
| number[];
  • Calculate the MD5 hash of a message.

    Parameter message

    Message to hash.

    Parameter options

    Input and output options.


    MD5 hash.


interface Options

interface Options {}

    property asBytes

    asBytes?: boolean | undefined;

      property asString

      asString?: boolean | undefined;

        property encoding

        encoding?: 'binary' | string | undefined;

          Package Files (1)

          Dependencies (0)

          No dependencies.

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (0)

          No peer dependencies.


          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/md5.

          • Markdown
          • HTML
            <a href="https://www.jsdocs.io/package/@types/md5"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>