/// <summary> /// Hem verilen parametreye göre hem de şifreci tipine göre bir sonuç döndürür. /// </summary> /// <param name="algorithmType"></param> /// <param name="parameter"></param> public CryptographerManager(CryptoAlgorithmType algorithmType, CryphtographerParameter parameter) { if (algorithmType == CryptoAlgorithmType.Simple) this.criptographerFactory = new SimpleCryphtographerFactory(parameter); if (algorithmType == CryptoAlgorithmType.Complicate) this.criptographerFactory = new HardestCryphtographerFactory(parameter); }
/// <summary> /// Verilen parametreye göre bir sonuç döndürür. /// </summary> /// <param name="algorithmType">Şifreci tipleri</param> public CryptographerManager(CryptoAlgorithmType algorithmType) { if (algorithmType == CryptoAlgorithmType.Simple) this.criptographerFactory = new SimpleCryphtographerFactory(keySizeConst, keyConst); if (algorithmType == CryptoAlgorithmType.Complicate) this.criptographerFactory = new HardestCryphtographerFactory(keySizeConst, keyConst); }
/// <summary> /// Hem verilen parametreye göre hem de şifreci tipine göre bir sonuç döndürür. /// </summary> /// <param name="algorithmType"></param> /// <param name="parameter"></param> public CryptographerManager(CryptoAlgorithmType algorithmType, CryphtographerParameter parameter) { if (algorithmType == CryptoAlgorithmType.Simple) { this.criptographerFactory = new SimpleCryphtographerFactory(parameter); } if (algorithmType == CryptoAlgorithmType.Complicate) { this.criptographerFactory = new HardestCryphtographerFactory(parameter); } }
/// <summary> /// Verilen parametreye göre bir sonuç döndürür. /// </summary> /// <param name="algorithmType">Şifreci tipleri</param> public CryptographerManager(CryptoAlgorithmType algorithmType) { if (algorithmType == CryptoAlgorithmType.Simple) { this.criptographerFactory = new SimpleCryphtographerFactory(keySizeConst, keyConst); } if (algorithmType == CryptoAlgorithmType.Complicate) { this.criptographerFactory = new HardestCryphtographerFactory(keySizeConst, keyConst); } }
/// <summary> /// Varsayılan olarak Simple Cryphtographer Factory gelir=> AES Algrorithm- MD5 ikilisi /// </summary> public CryptographerManager() { this.criptographerFactory = new SimpleCryphtographerFactory(keySizeConst, keyConst); }