Метод | Описание | |
---|---|---|
CounterBasedOtpGenerator ( |
Initializes a new instance of the CounterBasedOtpGenerator class. This is used when the client and server share a counter value.
|
|
CounterBasedOtpGenerator ( |
Initializes a new instance of the CounterBasedOtpGenerator class. This is used when the client and server share a counter value.
|
|
GenerateOtp ( int counter ) : string |
Generates the OTP for the given counter value. The client and server compute this independently and come up with the same result, provided they use the same shared key.
|
public CounterBasedOtpGenerator ( |
||
secretKey | The secret key. | |
otpLength | int | The number of digits in the OTP to generate. |
Результат | System |
public CounterBasedOtpGenerator ( |
||
secretKey | The secret key. | |
otpLength | int | The number of digits in the OTP to generate. |
hmacAlgorithm | IHMACAlgorithm | The hashing algorithm to use. |
Результат | System |
public GenerateOtp ( int counter ) : string | ||
counter | int | The counter value to use. |
Результат | string |