From WikiChip
Difference between revisions of "mirc/identifiers/$totp"
(Created page with "{{mirc title|$totp Identifier}}'''$totp''' returns a TOTP (Time-based One-time Password) based on the specified parameters. == Synopsis ==6) <pre>$totp(key, time, hash, dig...") |
|||
Line 2: | Line 2: | ||
− | == Synopsis == | + | == Synopsis == |
<pre>$totp(key, time, hash, digits, timestep)</pre> | <pre>$totp(key, time, hash, digits, timestep)</pre> | ||
Revision as of 14:35, 4 October 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$totp returns a TOTP (Time-based One-time Password) based on the specified parameters.
Synopsis
$totp(key, time, hash, digits, timestep)
Paramters
- key - the key is required and can be in a base16 format of either 40, 64 or 128 chars; or in a base32 format of either 16, 24 or 32 chars; or plain text; or it can also be in a Google Authenticator format ie lowercase with spaces.
- time - optional, a time in second, default to $ctime
- hash - optional, hashing algorithm, default to sha1
- digits - optional, number of digits, default to 6
- timestep - optional, number of timestep, default to 30
Properties
None
Example
None
Compatibility
Added: mIRC v7.42
Added on: 17 Jul 2015
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.