Operation request: generate/validate TOTP secret code
hellodword opened this issue · comments
hellodword commented
Summary
Now cyberchef has Generate_TOTP
operation, I'd like to see if it has Generate_TOTP_Code
(just like what Google Authenticator does) and Validate_TOTP
.
Example Input
operation: Generate_TOTP_Code
secret: MJ4VUY2LJ5HFI7LUHZBTC3S3MYXFGXLIOVEDYRRGMM3XGIKHHE2A
code length: 6
other parameters ...
operation: Validate_TOTP
secret: MJ4VUY2LJ5HFI7LUHZBTC3S3MYXFGXLIOVEDYRRGMM3XGIKHHE2A
code length: 123456
other parameters ...
Example Output
operation: Generate_TOTP_Code
123456
operation: Validate_TOTP
true