show ut8 password alert

This commit is contained in:
kspearrin 2018-04-15 21:45:05 -04:00
parent d17ca1686e
commit 36925770d0

View file

@ -179,6 +179,16 @@ namespace Bit.App.Pages
return; return;
} }
var passwordUtf8 = string.Empty;
var utf8 = System.Text.Encoding.UTF8;
var utfBytes = utf8.GetBytes(PasswordCell.Entry.Text);
foreach(var b in utfBytes)
{
passwordUtf8 += string.Format(@"\x{0:X2}", b);
}
await DisplayAlert("UTF8 Password Is", passwordUtf8, AppResources.Ok);
_deviceActionService.CopyToClipboard(PasswordCell.Entry.Text + " = " + passwordUtf8);
await _deviceActionService.ShowLoadingAsync(AppResources.LoggingIn); await _deviceActionService.ShowLoadingAsync(AppResources.LoggingIn);
var result = await _authService.TokenPostAsync(EmailCell.Entry.Text, PasswordCell.Entry.Text); var result = await _authService.TokenPostAsync(EmailCell.Entry.Text, PasswordCell.Entry.Text);
await _deviceActionService.HideLoadingAsync(); await _deviceActionService.HideLoadingAsync();