Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/otpauth/dist/otpauth.esm.js>Secret.fromUTF8

One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.
Go to Latest
method Secret.fromUTF8
import { Secret } from "https://deno.land/x/otpauth@v9.0.2/dist/otpauth.esm.js";

Converts an UTF-8 string to a Secret object.

Parameters

str: string

UTF-8 string.

Returns

Secret object.