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

x/otpauth/dist/otpauth.d.cts>Secret.fromLatin1

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

Converts a Latin-1 string to a Secret object.

Parameters

str: string

Latin-1 string.

Returns

Secret object.