mirror of
https://github.com/quantum5/totp.git
synced 2025-08-09 10:19:39 -04:00
10 lines
226 B
TypeScript
10 lines
226 B
TypeScript
import {HashAlgorithms} from '@otplib/core';
|
|
|
|
export const ALGORITHMS = {
|
|
sha1: HashAlgorithms.SHA1,
|
|
sha256: HashAlgorithms.SHA256,
|
|
sha512: HashAlgorithms.SHA512,
|
|
};
|
|
|
|
export type HashAlgorithm = keyof typeof ALGORITHMS;
|