1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-23 08:08:40 +03:00

Created OTPSevice (markdown)

2021-05-31 00:50:20 +03:00
parent a0cfa2a446
commit 234b7b9022
+19
@@ -0,0 +1,19 @@
Namespace: `SimpleOTP`
Assembly: `SimpleOTP.dll`
Service class for generating and validating OTP codes.
```csharp
public static class OTPService
```
## Examples
See `OTPService` usage examples on [Code generation/validation](https://github.com/XFox111/SimpleOTP/wiki/Code-generation-or-validation)
## Methods
| Method | Description |
| --- | --- |
| [GenerateCode](https://github.com/XFox111/SimpleOTP/wiki/OTPServiceGenerateCode) | Generates a new OTP code with provided configuration. |
| [ValidateHotp](https://github.com/XFox111/SimpleOTP/wiki/OTPServiceValidateHotp) | Validates provided HOTP code with provided parameters. |
| [ValidateTotp](https://github.com/XFox111/SimpleOTP/wiki/OTPServiceValidateTotp) | Validates provided TOTP code with provided parameters. |
| [ValidateCode](https://github.com/XFox111/SimpleOTP/wiki/OTPServiceValidateCode) | Obsolete. Validates provided OTP code with provided parameters. |