2017-11-04 12:11:30 -04:00
|
|
|
|
using ModernKeePass.Common;
|
|
|
|
|
using ModernKeePassLib.Cryptography;
|
|
|
|
|
|
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OpenDatabaseUserControlVm: NotifyPropertyChangedBase
|
|
|
|
|
{
|
2017-11-06 19:01:01 +01:00
|
|
|
|
private string _password;
|
2017-11-04 12:11:30 -04:00
|
|
|
|
|
2017-11-06 19:01:01 +01:00
|
|
|
|
public string Password
|
|
|
|
|
{
|
|
|
|
|
get { return _password; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_password = value;
|
|
|
|
|
OnPropertyChanged("PasswordComplexityIndicator");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public double PasswordComplexityIndicator => QualityEstimation.EstimatePasswordBits(Password.ToCharArray());
|
2017-11-04 12:11:30 -04:00
|
|
|
|
}
|
|
|
|
|
}
|