public void ComplicateSimetricCalisiyorMu()
 {
     CryptographerManager manager = new CryptographerManager(CryptoAlgorithmType.Complicate);
     string cipherText = manager.EncryptSimetric("EnginBulut_AliKaya");
     string plainText = manager.DecryptSimetric(cipherText);
     Assert.AreEqual(plainText, "EnginBulut_AliKaya");
 }
 public void SimpleAsimetricCalisiyorMu()
 {
     CryptographerManager manager = new CryptographerManager(CryptoAlgorithmType.Simple);
     string cipherText = manager.EncryptAsimetric("EnginBulut_AliKaya");
     string cipherText2 = manager.EncryptAsimetric("EnginBulut_AliKaya");
     Assert.AreEqual(cipherText, cipherText2);
 }
        public void ComplicateSimetrikParametreliCalisiyorMu()
        {
            CryphtographerParameter parameter = new CryphtographerParameter();
            parameter.InitVector = "1234567890123456";
            parameter.PasswordIterations = 3;
            parameter.KeySize = 256;
            parameter.Key = "123456789012345678901234567890AE";

            //defaultta rijndal geliyor
            CryptographerManager manager = new CryptographerManager(CryptoAlgorithmType.Complicate, parameter);
            string cipherText = manager.EncryptSimetric("EnginBulut_AliKaya");
            string plainText = manager.DecryptSimetric(cipherText);
            Assert.AreEqual(plainText, "EnginBulut_AliKaya");
        }
        public void SimpleSimetricParametreliCalisiyorMu()
        {
            //parameterik aes
            CryphtographerParameter parameter = new CryphtographerParameter();
            parameter.BlockBitSize = 128;
            parameter.Iterations = 40;
            parameter.MinPasswordLength = 12;
            parameter.SaltBitSize = 128;
            parameter.Key = "123456789012345678901234567890AE";
            parameter.KeySize = 256;

            CryptographerManager manager = new CryptographerManager(CryptoAlgorithmType.Simple, parameter);
            string cipherText = manager.EncryptSimetric("EnginBulut_AliKaya");
            string plainText = manager.DecryptSimetric(cipherText);
            Assert.AreEqual(plainText, "EnginBulut_AliKaya");
        }