Skip to content

Function.encodeHex

github-actions[bot] edited this page Nov 18, 2026 · 13 revisions

umt / encodeHex

Function: encodeHex()

encodeHex(input): string

Defined in: Crypto/encodeHex.ts:21

Encodes a string or Uint8Array to lowercase hexadecimal

Parameters

input

string | Uint8Array<ArrayBufferLike>

The input to encode (strings are UTF-8 encoded first)

Returns

string

Lowercase hexadecimal string with two characters per byte

Example

encodeHex("Hello"); // "48656c6c6f"

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally