Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/otpauth/dist/otpauth.umd.min.js>Secret.fromHex

One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers.
Latest
method Secret.fromHex
import { Secret } from "https://deno.land/x/otpauth@v9.3.5/dist/otpauth.umd.min.js";

Converts a hexadecimal string to a Secret object.

Parameters

str: string

Hexadecimal string.

Returns

Secret object.