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

x/otpauth/dist/otpauth.node.cjs>Secret.fromUTF8

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

Converts an UTF-8 string to a Secret object.

Parameters

str: string

UTF-8 string.

Returns

Secret object.