gchq / CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

Home Page:https://gchq.github.io/CyberChef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Operation request: generate/validate TOTP secret code

hellodword opened this issue · comments

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