/// <summary> Импортировать приватный ключ шифрования </summary>
        public bool ImportAndSaveCryptKey()
        {
            var result = DataSourceSecurity.ImportUserPrivateKey(UtilitySecurity.ToSecureString(CryptKeyForImport));

            if (result)
            {
                CryptKeyForImport = String.Empty;

                var saveResult = LocalSavePublicKey();

                ShowImportPanel = false;
                ExportAviable   = true;
            }

            return(result);
        }
Exemplo n.º 2
0
 /// <summary> Проверка пароля </summary>
 public static bool CheckPassword(string password)
 {
     return(CheckPassword(UtilitySecurity.ToSecureString(password)));
 }