mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-12 09:11:37 -04:00
Added 'Generate TOTP Code' operation
This commit is contained in:
parent
ae1b12c120
commit
cbabfbaaa5
5 changed files with 127 additions and 0 deletions
23
tests/operations/tests/GenerateTOTPCode.mjs
Normal file
23
tests/operations/tests/GenerateTOTPCode.mjs
Normal file
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* Generate TOTP Code tests.
|
||||
*
|
||||
* @author hellodword
|
||||
*
|
||||
* @copyright Crown Copyright 2017
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import TestRegister from "../../lib/TestRegister.mjs";
|
||||
|
||||
TestRegister.addTests([
|
||||
{
|
||||
name: "Generate TOTP Code",
|
||||
input: "",
|
||||
expectedOutput: "871328",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Generate TOTP Code",
|
||||
args: ["KJLTAORSKZGV4RBMHNFDETRVKQUFMLZTHZYFOW2UFAYXIP23JVNQ", "SHA-1", 30, 6, 1465324707000],
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
Loading…
Add table
Add a link
Reference in a new issue