mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
16 lines
533 B
C#
16 lines
533 B
C#
using mRemoteNG.Properties;
|
|
|
|
namespace mRemoteNG.Security.Factories
|
|
{
|
|
public class CryptoProviderFactoryFromSettings : ICryptoProviderFactory
|
|
{
|
|
public ICryptographyProvider Build()
|
|
{
|
|
var provider =
|
|
new CryptoProviderFactory(Settings.Default.EncryptionEngine, Settings.Default.EncryptionBlockCipherMode)
|
|
.Build();
|
|
provider.KeyDerivationIterations = Settings.Default.EncryptionKeyDerivationIterations;
|
|
return provider;
|
|
}
|
|
}
|
|
} |