· 7 years ago · Oct 08, 2018, 02:48 AM
1using OtpSharp;
2using System.Threading;
3using Xamarin.Forms;
4
5namespace DemoToken
6{
7 public partial class MainPage : ContentPage
8 {
9 public string Codigo
10 {
11 get => _codigo;
12 set
13 {
14 _codigo = value;
15 OnPropertyChanged();
16 }
17 }
18 private string _codigo;
19
20 public string Segundos
21 {
22 get => _segundos;
23 set
24 {
25 _segundos = value;
26 OnPropertyChanged();
27 }
28 }
29 private string _segundos;
30
31 private readonly byte[] _secretKey;
32 private Totp _totp;
33 private Timer _timer;
34
35 public MainPage()
36 {
37 InitializeComponent();
38 }
39 }
40}