コード例 #1
0
        private void EncryptPassword(string password)
        {
            RsaCryptoService.GeneratePrivateKey(RsaPrivateKeyFileName);

            using (RsaCryptoService cryptoService = new RsaCryptoService())
            {
                string encryptData = cryptoService.EncryptData(RsaPrivateKeyFileName, password);
                File.WriteAllText(RsaPublicKeyFileName, encryptData);
            }
        }
コード例 #2
0
 public DatabaseEngineProvider()
 {
     _rsaCryptoService = new RsaCryptoService();
     _installer        = new DatabaseEngineInstaller();
 }