mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
22 lines
530 B
C#
22 lines
530 B
C#
|
using ModernKeePassLib.Cryptography;
|
|||
|
|
|||
|
namespace ModernKeePass.ViewModels
|
|||
|
{
|
|||
|
public class NewVm : OpenVm
|
|||
|
{
|
|||
|
private string _password = string.Empty;
|
|||
|
|
|||
|
public string Password
|
|||
|
{
|
|||
|
get { return _password; }
|
|||
|
set
|
|||
|
{
|
|||
|
_password = value;
|
|||
|
NotifyPropertyChanged("PasswordComplexityIndicator");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public double PasswordComplexityIndicator => QualityEstimation.EstimatePasswordBits(Password.ToCharArray());
|
|||
|
}
|
|||
|
}
|