Base64.toHex
Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to Hex.Hex
.
Imports
Named
import { Base64 } from 'ox'
Examples
import { Base64, Hex } from 'ox'
const value = Base64.toHex('aGVsbG8gd29ybGQ=')
0x68656c6c6f20776f726c64
Definition
function toHex(
value: string,
): Hex.Hex
Source: src/Base64.ts
Parameters
value
- Type:
string
The string, hex value, or byte array to encode.
Return Type
The Base64 decoded Hex.Hex
.
Hex.Hex